cerco delle immagini che seguono il mouse (da mettere nel mio forum) tipo questo
http://img220.imageshack.us/img220/1769/immagineyz9.jpg
FunCool: Ho messo il link all'immagine per evitare che il layout del forum si sformi.
Printable View
cerco delle immagini che seguono il mouse (da mettere nel mio forum) tipo questo
http://img220.imageshack.us/img220/1769/immagineyz9.jpg
FunCool: Ho messo il link all'immagine per evitare che il layout del forum si sformi.
prova cosė:
Codice HTML:<html>
<head>
<script>
function image(e)
{
if(!e.pageX){
document.getElementById("im").style.left = e.clientX + document.body.scrollLeft + 18 + "px";
document.getElementById("im").style.top = e.clientY + document.body.scrollTop + 33 + "px";
}else{
document.getElementById("im").style.left = e.pageX + 18 + "px";
document.getElementById("im").style.top = e.pageY + 33 + "px";
}
}
</script>
</head>
<body onmousemove="image(event)">
<img id="im" src="1.jpg" style="position:absolute; top: 0px; left:0px;"/>
</body>
</html>