zen-cart的news模块加滚动错位解决方法

2010年02月26日  |  19:24分类:长沙网站开发  |  标签:  |  688 views

zen-cart的左边添加news模块后,如果加滚动出现错位,可以用下面的方法来解决:

一般添加去看当前模板下的sidebox/tpl_news_scroll_box.php会发现滚动的代码是这样写的:

$content .= ‘<marquee direction= “up”  width=210px   height=110px scrolldelay=0  scrollamount=2.5  behavior=scroll   onmouseover=”this.stop();”   onmouseout=”this.start()”>’;

如果出现了错位,只要把width=210px   height=110px 写成style=” width:210px; height:110px;”就可以解决。

即$content .= ‘<marquee direction= “up”  style=” width:210px; height:110px;” scrolldelay=0  scrollamount=2.5  behavior=scroll   onmouseover=”this.stop();”   onmouseout=”this.start()”>’;

其他不用修改。

喜欢本文,那就收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

发表您的评论

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word