phpcms如何实现logo链接无缝滚动_PHPCms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!
调用标签代码
{$linklist('tag_linklist-1',$channelid,1,0,20,20)}

标签模板内容(右滚动)

CODE: [Copy to clipboard] <base href="http://www.cnser.net">
<div id=demo style=overflow:hidden;height:33;width:500;background:#214984;color:#ffffff>
<table align=left cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top>
{loop $sites $i $site}
{if $i%$cols==0}
<tr>
{/if}
<td align="center">
<a href="{$site[url]}" title="{$site[name]}" target="_blank" class="friendsitelist">{$site[link]}</a>
</td>
{if $i%$cols==($cols-1)}
</tr>
{/if}
{/loop}
</td>
<td id=demo2 valign=top>
</td>
</tr>
</table>
</div>
<script language="javascript">
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollLeft=demo.scrollWidth
function Marquee(){
if(demo.scrollLeft<=0)
demo.scrollLeft =demo2.offsetWidth
else{
demo.scrollLeft--
}
}
var MyMar=setInterval(Marquee,speed)
demo.on mouseover=function() {MyMar=clearInterval(MyMar)}
demo.on mouseout=function() {MyMar=setInterval(Marquee,speed)}
</script> 左滚动标签代码
{$linklist('tag_linklist-1',$channelid,1,0,20,20)}

CODE: [Copy to clipboard] <base href="http://www.cnser.net">
<div id=demo style=overflow:hidden;height:33;width:500;background:#214984;color:#ffffff>
<table align=left cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top>
{loop $sites $i $site}
{if $i%$cols==0}
<tr>
{/if}
<td align="center">
<a href="{$site[url]}" title="{$site[name]}" target="_blank" class="friendsitelist">{$site[link]}</a>
</td>
{if $i%$cols==($cols-1)}
</tr>
{/if}
{/loop}
</td>
<td id=demo2 valign=top>
</td>
</tr>
</table>
</div>
<script language="javascript">
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){

查看更多 phpcms教程  phpcms模板

共2页上一页12下一页
来源:模板无忧//所属分类:PHPCms教程/更新时间:2007-01-29
相关PHPCms教程