More simple to follow the mouse text scrolling effect
<textarea id="runcode37632"><ptml> <pead> <title> Follow the mouse text with scrolling effect </title> </pead><body> <!-- Add the following code to <Body></Body> between HTML--> <script language= "JavaScript1.2" > var scroller_msg= ' Welcome to My Site ' var dismissafter=0 var initialvisible=0 if (document.all) document.write (' <marquee id= ' curscroll ' > ' +scroller_ms g+ ' </marquee> ') function Followcursor () {//move cursor function for IE if (initialvisible==0) {Curscroll.style . visibility= "Visible" initialvisible=1} curscroll.style.left=document.body.scrollleft+event.clientx+10 CURSCROLL.STYLE.TOP=DOCUMENT.BODY.SCROLLTOP+EVENT.CLIENTY+10} function Dismissmessage () { Curscroll.style.visibility= "Hidden"} if (document.all) {document.onmousemove=followcursor document.ondblclick=dism Issmessage if (dismissafter!=0) settimeout ("Dismissmessage ()", dismissafter*1000)}//--> </script> < /body></ptml></textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]