1个回答
展开全部
那只骚狐狸很讨厌。。。。你咋也没点分呢?我很穷的
=============================================
<div id="scroll_div" style="overflow: hidden; WIDTH: 560px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="scroll_begin">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td></tr>
</table>
<td id="scroll_end"></td>
</tr>
</table>
</div>
<script>
var speed1=40
var scroll_end = document.getElementById("scroll_end");
var scroll_div = document.getElementById("scroll_div");
scroll_end.innerHTML=scroll_begin.innerHTML
function Marquee1(){
if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0)
scroll_div.scrollLeft-=scroll_begin.offsetWidth
else{
scroll_div.scrollLeft++
}
}
var MyMar1=setInterval(Marquee1,speed1)
scroll_div.onmouseover=function() {clearInterval(MyMar1)}
scroll_div.onmouseout=function() {MyMar1=setInterval(Marquee1,speed1)}
</script>
=============================================
<div id="scroll_div" style="overflow: hidden; WIDTH: 560px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="scroll_begin">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td>
<td align="center> <img src="图片地址" hspace="10" vspace="10" border="0"/> </td></tr>
</table>
<td id="scroll_end"></td>
</tr>
</table>
</div>
<script>
var speed1=40
var scroll_end = document.getElementById("scroll_end");
var scroll_div = document.getElementById("scroll_div");
scroll_end.innerHTML=scroll_begin.innerHTML
function Marquee1(){
if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0)
scroll_div.scrollLeft-=scroll_begin.offsetWidth
else{
scroll_div.scrollLeft++
}
}
var MyMar1=setInterval(Marquee1,speed1)
scroll_div.onmouseover=function() {clearInterval(MyMar1)}
scroll_div.onmouseout=function() {MyMar1=setInterval(Marquee1,speed1)}
</script>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询