JavaScript following the mouse text with scrolling effect _ mouse effects

Source: Internet
Author: User
Tags visibility
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]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.