† PrettY † |
|
| Per far sì che una piccola immagine segua il puntatore del nostro sito/blog/forum, basta incollare questo script nella homepage (per i forum: amministrazione->gestione codice HTML->visualizza in ogni pagina in cima al forum) CODICE <!-- Prelevato Sul Forum Pretty Graphic www.pgraphic.forumfree.net --> <script language="JavaScript">
var immagine='PGraphic - LINK DELL'IMMAGINE'; 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> Dove - a PGraphic - LINK DELL'IMMAGINE va sostituito l'url dell'immagine che vogliamo segua il puntatore (http://......) Usatelo per abbellire il vostro spazio web ^__*
|
| |