当前位置: 代码迷 >> Web前端 >> 追随鼠标的滚动文字
  详细解决方案

追随鼠标的滚动文字

热度:263   发布时间:2012-09-05 15:19:34.0
跟随鼠标的滚动文字

                   
                                                                Javascript经典专区-与以往不同的跟随鼠标的滚动文字之间-->var scroller_msg='欢迎进入Javascript经典专区'var dismissafter=0var initialvisible=0if (document.all)document.write(''+scroller_msg+'')function followcursor(){//move cursor function for IEif (initialvisible==0){curscroll.style.visibility="visible"initialvisible=1}curscroll.style.left=document.body.scrollLeft+event.clientX+10curscroll.style.top=document.body.scrollTop+event.clientY+10}function dismissmessage(){curscroll.style.visibility="hidden"}if (document.all){document.onmousemove=followcursordocument.ondblclick=dismissmessageif (dismissafter!=0)setTimeout("dismissmessage()",dismissafter*1000)}//-->演示地址:
http://onlyaa.com/html/jshtml/mouse/200806/17-2228.html

  相关解决方案