Show scroll subtitle special effects when mouseover _ typical special effects

Source: Internet
Author: User
Scroll subtitle effects displayed when mouseover

<SCRIPT language = JavaScript> if (! Document. layers &&! Document. all) event = "test" function showtip2 (current, e, text) {if (document. all & document. readyState = "complete") {document. all. tooltip2.innerHTML = '<marquee style = "border: 1px solid blue">' + text + '</marquee>' document. all. tooltip2.style. pixelLeft = event. clientX + document. body. scrollLeft + 10 document. all. tooltip2.style. pixelTop = event. clientY + document. body. scrollTop + 10 document. all. tooltip2.style. visibility = "visible"} else if (document. layers) {document.tooltip2.document.nstip.doc ument. write ('<B>' + text + '</B>') document.tooltip2.document.nstip.doc ument. close () document.tooltip2.doc ument. nstip. left = 0 currentscroll = setInterval ("scrolltip ()", 100) document. tooltip2.left = e. pageX + 10 document. tooltip2.top = e. pageY + 10 document. tooltip2.visibility = "show"} function hidetip2 () {if (document. all) document. all. tooltip2.style. visibility = "hidden" else if (document. layers) {clearInterval (currentscroll) document. tooltip2.visibility = "hidden"} function scrolltip () {if (document.tooltip2.doc ument. nstip. left> developer-document.tooltip2.document.nstip.doc ument. width) document.tooltip2.doc ument. nstip. left-= 5 else document.tooltip2.doc ument. nstip. left = 150} SCRIPT <LAYER name = "nstip" width = "500px" bgColor = "white"> </LAYER> online
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

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.