怎样在dw上一个框内并排加入两张图片 求代码~
2个回答
展开全部
<table width="500" height="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle"><img src="1.jpg"></td>
<td valign="middle"><img src="1.jpg"></td>
</tr>
</table></td>
</tr>
</table>
<tr>
<td valign="top"><table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle"><img src="1.jpg"></td>
<td valign="middle"><img src="1.jpg"></td>
</tr>
</table></td>
</tr>
</table>
展开全部
<div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff><table align=left cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top><img src=""><img src=""><img src=""><img src=""><img src=""></td><td id=demo2 valign=top></td></tr></table></div>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function()
demo.onmouseout=function()
</script>
<p><a href="" target="_blank">懒人图库</a></p>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function()
demo.onmouseout=function()
</script>
<p><a href="" target="_blank">懒人图库</a></p>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询