Page text around the continuous scrolling JS code

Source: Internet
Author: User
Keywords Web page production Ajax javascript
Tags ajax code content continuous document function javascript script

  

<style type= "Text/css" >  #gongao {width:1000px;height:30px;overflow:hidden;line-height:30px;font-size : 13px;font-family: ' song body '; background: #DDE5ED; color: #0C77CF; font-weight:bold;}   #gongao #scroll_begin, #gongao #scroll_end {display:inline}  </style>  <script type= "text/ JavaScript >  function Scrollimgleft () {  var speed=50;  var scroll_begin = document.getElementById (" Scroll_begin ");  var scroll_end = document.getElementById (" scroll_end ");  var scroll_div = document.getElementById ("Scroll_div");  scroll_end.innerhtml=scroll_begin.innerhtml;  function Marquee ( ) {  if (scroll_end.offsetwidth-scroll_div.scrollleft<=0)   Scroll_div.scrollleft-=scroll_ begin.offsetwidth;  else  scroll_div.scrollleft++; }  var mymar=setinterval (Marquee,speed);   Scroll_div.onmouseover=function () {clearinterval (MyMar);}   Scroll_div.onmouseout=function () {mymar=setinterval (marquee,speed);}  }  </script>  <div id= "Gongao" >  <div style= "width:900px;height:30px;margin:0 auto;white-space : Nowrap;overflow:hidden; "id=" Scroll_div "class=" Scroll_div ">  <div id=" Scroll_begin ">  ${ Affiche.content} ${affiche.content} ${affiche.content}  ${affiche.content} ${affiche.content} ${ affiche.content}  </div>  <div id= "Scroll_end" ></div>  </div>  < Script type= "Text/javascript" >scrollimgleft ();</script>  </div>   
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.