CMSware新闻走马灯效果
来自站长百科
导航:返回上一页
纵向滚动的新闻走马灯效果示例[ ]
示例代码:
<marquee onmouseover=this.scrollDelay=10000 onmouseout=this.scrollDelay=30 scrollAmount=1 scrollDelay=30 direction=up height=70> <ul class=titleListul xmlns="http://www.w3.org/tr/xhtml1/strict"> <CMS action="LIST" return="List" NodeID="1" num="10" /><!--调用结点ID为1的栏目最新发布10条记录--> <LOOP name="List" var="var" key="key"> <li class="titleListli"> <a href="[$var.URL]" target="_blank" title="[$var.Title]" > [@CsubStr($var.Title, 0, 16)] </a> ([@date('m-d H:i', $var.PublishDate)]) </li> </LOOP> </ul> </marquee>
横向滚动的新闻走马灯效果示例[ ]
示例代码:
<marquee onmouseover=this.scrollDelay=10000 onmouseout=this.scrollDelay=30 scrollAmount=2>滚动新闻: <CMS action="LIST" return="List" NodeID="1" num="10" /> <!--调用结点ID为1的栏目最新发布10条记录--> <LOOP name="List" var="var" key="key"> ·<a class=grey-s href="[$var.URL]" target="_blank" title="[$var.Title]" xmlns="http://www.w3.org/tr/xhtml1/strict"> [@CsubStr($var.Title, 0, 16)] </a> </a> </LOOP> </marquee>