PHP页面中 调用两个图片流动模块 为啥都不动了

WBOY
Release: 2016-06-13 12:52:04
Original
776 people have browsed it

PHP页面中 调用两个图片流动模块 为什么都不动了
我做了一个PHP页面 本来做一个流动模块可以流动
为什么做了两个流动模块都不流动了呢?

代码如下


  

  
  
  

 

  <script><br /> var fx = 0;<br /> var speed = 20//速度数值越大速度越慢<br /> www_qpsh_com2.innerHTML = www_qpsh_com1.innerHTML<br /> function Marquee() {<br /> if (fx == 0) {<br /> if (www_qpsh_com2.offsetWidth - www_qpsh_com.scrollLeft <= 0)<br /> www_qpsh_com.scrollLeft -= www_qpsh_com1.offsetWidth<br /> else {<br /> www_qpsh_com.scrollLeft++<br /> }<br /> } else {<br /> if (www_qpsh_com.scrollLeft <= 0) {<br /> www_qpsh_com.scrollLeft += www_qpsh_com1.offsetWidth<br /> }<br /> else {<br /> www_qpsh_com.scrollLeft--<br /> }<br /> }<br /> }<br /> var MyMar = setInterval(Marquee, speed)<br /> www_qpsh_com.onmouseover = function () { clearInterval(MyMar) }<br /> www_qpsh_com.onmouseout = function () { MyMar = setInterval(Marquee, speed) }<br /> function left() {<br /> fx = 0;<br /> }<br /> function right() {<br /> fx = 1;<br /> }<br /> function linkmenu(id){<br /> document.getElementById("linkmenu1").className="";document.getElementById("linkmenu2").className="";<br /> document.getElementById("linkmenu"+id).className="linkon";<br /> document.getElementById("linkcont1").style.display="none";document.getElementById("linkcont2").style.display="none"; <div class="clear"> </script>
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template