Javascript vertical image skating

Source: Internet
Author: User

<! -- View Room detail PIC start --> <br/> <Div id = "roomtypesee" style = "height: 700px; "> <br/> <Div id =" Demo "style =" overflow: hidden; width: 200px; Height: 700px; text-align: center "> <br/> <Div id =" demo1 "> <br/> <center> <br/> <font color =" red "> <br/> <B> <br/> <br/> Standard Room Real-Time View <br/> <br /> <br/> advanced real-time image <br/> <br/> deluxe room view <br/> <br/> <Br/> real-time inter-administrative diagram <br/> <br/> advanced suite view <br/> <br/> luxury suite scenario <br/> <br/> deluxe suites <br/> </B> <br/> </font> <br/> </center> <br/> </div> <br/> <Div id = "demo2"> </div> <br/> </div> <br/> <MCE: script Type = "text/JavaScript"> <! -- <Br/> var speed = 1 <br/> var demo2 = document. getelementbyid ("demo2"); <br/> var demo1 = document. getelementbyid ("demo1"); <br/> var demo = document. getelementbyid ("Demo"); <br/> demo2.innerhtml = demo1.innerhtml <br/> function marquee () <br/>{< br/> If (demo2.offsettop-demo. scrolltop <= 0) <br/> demo. scrolltop-= demo1.offsetheight <br/> else <br/>{< br/> demo. scrolltop ++ <br/>}< br/> var mymar = Se Tinterval (marquee, speed) <br/> demo. onmouseover = function () {clearinterval (mymar)} <br/> demo. onmouseout = function () {mymar = setinterval (marquee, speed)} </P> <p> // --> </MCE: SCRIPT> <br/> </div> <br/> <! -- View Room detail PIC end --> 

 

 

 

-----------------------------------------------------------------------

Small programmer | PHP learning exchange www.xiaophper.com

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.