phpok 横向无缝滚动新闻栏目图片
作者:cmscn 日期:2009-03-03
<DIV class=clearfix id=content>
<div class=sxhns>※ 最新图文</div>
<div id="deme" style="OVERFLOW: hidden; WIDTH: 770px; HEIGHT: 122px">
<table cellpadding="0" align="center" border="0" cellspace="0">
<tr>
<td id="deme1" valign="top">
<table>
<tr>
<!-- run:$list = QGMOD_MSGLIST(33,36,"isvouch DESC,orderdate DESC",true,5,true) -->
<!-- $list['list'] AS $key=>$value -->
<td align="left"><a href="msg.php?id={:$value[id]}" title="{:$value[subject]}"><img src="{:$value[thumb]}" border="0" width="175px" height="120" alt="{:$value[subject]}" /></a></td>
<!-- end -->
<!-- run:unset($list) -->
</tr>
</table>
<td id="deme2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=40
deme2.innerHTML=deme1.innerHTML
function Marquee12(){
if(deme2.offsetWidth-deme.scrollLeft<=0)
deme.scrollLeft-=deme1.offsetWidth
else{
deme.scrollLeft++
}
}
var MyMar=setInterval(Marquee12,speed)
deme.onmouseover=function() {clearInterval(MyMar)}
deme.onmouseout=function() {MyMar=setInterval(Marquee12,speed)}
</script>
</div>
评论: 0 | 引用: 0 | 查看次数: 713
发表评论