PHP页面中 调用两个图片流动模块 为什么都不动了
我做了一个PHP页面 本来做一个流动模块可以流动
为什么做了两个流动模块都不流动了呢?
代码如下<div id="www_qpsh_com" style="overflow:hidden;height:175px;width:660px;color:#ff0000; margin-left:0px; margin-top:20px;">
<table align="left" cellpadding="0" cellspaceing="0" border="0"><tr><td id="www_qpsh_com1" valign="top">
<table border="0" cellpadding="0" cellspacing="0" ><tr>
<?php echo dt_product(39,15,15,0,5,false,'ordering')?>
</tr></table>
</td><td id="www_qpsh_com2" valign="top"></td></tr></table></div>
<script type="text/javascript">
var fx = 0;
var speed = 20//速度数值越大速度越慢
www_qpsh_com2.innerHTML = www_qpsh_com1.innerHTML
function Marquee() {
if (fx == 0) {
if (www_qpsh_com2.offsetWidth - www_qpsh_com.scrollLeft <= 0)
www_qpsh_com.scrollLeft -= www_qpsh_com1.offsetWidth
else {
www_qpsh_com.scrollLeft++
}
} else {
if (www_qpsh_com.scrollLeft <= 0) {
www_qpsh_com.scrollLeft += www_qpsh_com1.offsetWidth
}
else {
www_qpsh_com.scrollLeft--
}
}
}
var MyMar = setInterval(Marquee, speed)
www_qpsh_com.onmouseover = function () { clearInterval(MyMar) }
www_qpsh_com.onmouseout = function () { MyMar = setInterval(Marquee, speed) }
function left() {
fx = 0;
}
function right() {
fx = 1;
}
function linkmenu(id){
document.getElementById("linkmenu1").className="";document.getElementById("linkmenu2").className="";
document.getElementById("linkmenu"+id).className="linkon";
document