† Zelda Forum † [Wii~ Xbox~ Ps2~ Ps3~ Psp~ Ds~ Anime~ Naruto~  Dragonball~  One Piece~ Bleach~ Hacking~ And Other]

Richiesta di diventare Moderatore

« Older   Newer »
  Share  
Aaron Master
view post Posted on 29/6/2011, 20:45     +1   -1




Questo dovrebbe funzionare ^_^
CODICE
<script type="text/javascript">
<!-- Autore: Aaron Master -->
<!--
var nn=document.layers;
var n6=document.getElementById;
var ie=document.all;
var Y = 10; // Distanza verticale in Px dal puntatore, puoi inserire valori negativi per posizionare l'immagine sopra
var X = 15; // Distanza orizzontale in Px dal puntatore, puoi inserire valori negativi per posizionare l'immagine a sinistra
function add(){
check=n6?document.getElementById("Segui"):document.layers.Segui;
if (!document.all)
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = segui;
}
function segui(img){
if(ie){
check.style.top=window.event.clientY+Y+document.body.scrollTop;
check.style.left=window.event.clientX+X+document.body.scrollLeft;
}
else
if(n6){
check.style.top=img.pageY+Y;
check.style.left=img.pageX+X;
}
else
if(nn){
check.top=img.pageY+Y;
check.left=img.pageX+X;
}
}
window.onload=add;
//-->
</script>
</head>
<body>
<div id="Segui" style="position:absolute; layer-visibility:hidden"><img src="http://i49.tinypic.com/291c7k8.gif"></div>
 
Top
Ganon 93
view post Posted on 30/6/2011, 08:30     +1   -1




bel lavoro Aaron!
 
Top
MrLink93
view post Posted on 30/6/2011, 09:39     +1   -1




si e vero, hai fatto un buon lavoro, complimenti Aaron
 
Top
Aaron Master
view post Posted on 30/6/2011, 09:44     +1   -1




Grazie! ^_^
 
Top
Aaron Master
view post Posted on 30/6/2011, 10:49     +1   -1




Mi sono dato da fare e se poteva servire ho fatto un codice per un cursore verde che si abbina al forum verde:
HTML
<script language="JavaScript">



var immagine= 'http://imageshack.us/photo/my-images/819/cursorezeldamasterforum.png/';

var code = '';

if (document.all) {

code += '<SPAN ID="pointer" STYLE="position: absolute; left: -100">';

code += '<IMG NAME="pointerImg" SRC="' + immagine + '" BORDER=0>';

code += '</SPAN>';

} else {

code += '<LAYER ID="pointer" POSITION="absolute" LEFT="-100">';

code += '<IMG ID="pointerImg" SRC="' + immagine + '" BORDER=0>';

code += '</LAYER>';

}

document.write(code);



if(document.layers) document.captureEvents(Event.MOUSEMOVE);

document.onmousemove = coordinate;



function coordinate(e) {

if (document.layers) {

document.layers.pointer.left = e.pageX + 8;

document.layers.pointer.top = e.pageY + 8;

}

if (document.all) {

pointer.style.left = event.clientX + document.body.scrollLeft + 8;

pointer.style.top = event.clientY + document.body.scrollTop + 8;

}

return true;

}

</script>


Se non funziona usate questo:
HTML
<script language="JavaScript">



var immagine= 'http://imageshack.us/photo/my-images/233/cursorezeldamasterforum.gif/';

var code = '';

if (document.all) {

code += '<SPAN ID="pointer" STYLE="position: absolute; left: -100">';

code += '<IMG NAME="pointerImg" SRC="' + immagine + '" BORDER=0>';

code += '</SPAN>';

} else {

code += '<LAYER ID="pointer" POSITION="absolute" LEFT="-100">';

code += '<IMG ID="pointerImg" SRC="' + immagine + '" BORDER=0>';

code += '</LAYER>';

}

document.write(code);



if(document.layers) document.captureEvents(Event.MOUSEMOVE);

document.onmousemove = coordinate;



function coordinate(e) {

if (document.layers) {

document.layers.pointer.left = e.pageX + 8;

document.layers.pointer.top = e.pageY + 8;

}

if (document.all) {

pointer.style.left = event.clientX + document.body.scrollLeft + 8;

pointer.style.top = event.clientY + document.body.scrollTop + 8;

}

return true;

}

</script>
 
Top
Ganon 93
view post Posted on 30/6/2011, 18:36     +1   -1




questi codici dove si mettono esattamente?
 
Top
Aaron Master
view post Posted on 30/6/2011, 18:37     +1   -1




Se vuoi li metto io basta che mi dici se li vuoi in una sezione o in tutto il forum ^_^
 
Top
Ganon 93
view post Posted on 30/6/2011, 19:02     +1   -1




no in tutto il forum...basta che quando metti i codici lasci un pò di spazio tra uno e l'altro..cmq è compatibile con tutti i browser oppure no?
 
Top
Aaron Master
view post Posted on 30/6/2011, 19:05     +1   -1




Sisi è compatibile con tutti ora lo metto ^_^

L'ho messa ditemi che ne dite e se volete un'altra immagine dite subito! ^_^
 
Top
Ganon 93
view post Posted on 30/6/2011, 19:13     +1   -1




si va bene come immagine ma non è quella che stiamo cercando..però va molto bene :)
 
Top
24 replies since 27/6/2011, 15:00   120 views
  Share