3个回答
2013-08-29
展开全部
楼上的火狐肯定不兼容,用我的
<div id="www_qpsh_com" style="overflow:hidden;height:285px;width:1000px;color:#ff0000">
<table border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0">
<tr>
<td id="www_qpsh_com1" valign="top"><table border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
</tr>
</table></td>
<td id="www_qpsh_com2" valign="top"></td>
</tr>
</table>
</div>
<SCRIPT>
var speed3=25;//速度数值越大速度越慢
var www_qpsh_com1 = document.getElementById("www_qpsh_com1");
//非w3c标准要找到表单,必须是要用getElementById("XX");
var www_qpsh_com2 = document.getElementById("www_qpsh_com2");
var www_qpsh_com = document.getElementById("www_qpsh_com");
www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML;
function Marquee3(){
if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0)
www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth;
else{
www_qpsh_com.scrollLeft++;
}
}
var MyMar3=setInterval(Marquee3,speed3)
www_qpsh_com.onmouseover=function() {clearInterval(MyMar3)}
www_qpsh_com.onmouseout=function() {MyMar3=setInterval(Marquee3,speed3)}
</SCRIPT>
<div id="www_qpsh_com" style="overflow:hidden;height:285px;width:1000px;color:#ff0000">
<table border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0">
<tr>
<td id="www_qpsh_com1" valign="top"><table border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
<td style="padding-left:1px;"><img src="图片1" alt="" width="115" height="285" border="0" /></td>
</tr>
</table></td>
<td id="www_qpsh_com2" valign="top"></td>
</tr>
</table>
</div>
<SCRIPT>
var speed3=25;//速度数值越大速度越慢
var www_qpsh_com1 = document.getElementById("www_qpsh_com1");
//非w3c标准要找到表单,必须是要用getElementById("XX");
var www_qpsh_com2 = document.getElementById("www_qpsh_com2");
var www_qpsh_com = document.getElementById("www_qpsh_com");
www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML;
function Marquee3(){
if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0)
www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth;
else{
www_qpsh_com.scrollLeft++;
}
}
var MyMar3=setInterval(Marquee3,speed3)
www_qpsh_com.onmouseover=function() {clearInterval(MyMar3)}
www_qpsh_com.onmouseout=function() {MyMar3=setInterval(Marquee3,speed3)}
</SCRIPT>
2013-08-29
展开全部
。。。好像html有个滚动的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-08-29
展开全部
楼上的火狐肯定不兼容,用我的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询