به این صورت بنویسید
کد:<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <script> $(document).mousemove(function(e){ $("#image").stop().animate({left:e.pageX, top:e.pageY}); }); </script> <style> #image{ position:absolute; height:200px; } </style> </head> <img id="image" src="image/sc.png" /> <body> </body> </html>





علاقه مندی ها (Bookmarks)