stl:marquee 标签示例(简单)
示例一:显示由下向上的滚动链接
下面的例子使用了 stl: marquee 标签创建了由下向上的滚动链接,滚动对象为栏目索引为"新闻"的内容列表。
<stl:marquee direction="Vertical" width="220" height="160">
<stl:contents channelIndex="新闻" cellpadding="2" cellspacing="2">
<stl:a target="_blank"></stl:a> <br />
</stl:contents>
</stl:marquee>
解析后的HTML代码:
示例二:显示由右至左的滚动链接
下面的例子使用了 stl: marquee 标签创建了由右至左的滚动链接,滚动对象为栏目名称为"新闻"的内容列表。
<stl:marquee direction="Horizontal" width="600">
<stl:contents channelIndex="新闻" layout="None">
<stl:a target="_blank"></stl:a>
</stl:contents>
</stl:marquee>
解析后的HTML代码:
代表标签解析后为HTML5代码,中间线代表此标签已被其他标签替代,不推荐使用。