Different from the previous scrolling text that follows the mouse

Source: Internet
Author: User
Tags visibility
Tip: you can modify some code before running

<html><head><title>Different from the previous scrolling text that follows the mouse</title></head><body><!--将以下代码加入HTML的<Body></body>之间--><script language="JavaScript1.2">Var scroller_msg = 'Welcome to my site' var dismissafter = 0var initialvisible = 0if (document. all) document. write ('<marquee id="curscroll" >'+ Scroller_msg +'</marquee>') 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 = dismissmessage If (dismissafter! = 0) setTimeout ("dismissmessage ()", dismissafter * 1000)} // --></script></body></html>
Tip: you can modify some code before running

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.