主题 : 图片从上往下滚动的实现 |
级别: 状元
|
2# 发表于:2014-06-17 13:36:13 IP:61.128.*.*
图文向上滚动
[@cms_content_list topicId='2' typeId='2' styleList='2-2' titLen='16' rollLineHeight='115' rollSpan='1' rollCols='4' rollSpeed='1' isSleep='1' rollSleepTime='500' rollDisplayHeight='115' tpl='2'/] |
||
---|---|---|---|
级别: 状元
|
4# 发表于:2014-06-17 13:49:23 IP:61.128.*.*
以下js放在head标签里。
<script src="${resSys}/jquery.js" type="text/javascript"> </script> <script src="${resSys}/front.js" type="text/javascript"> </script> [@cms_content_list topicId='1' typeId='2' count='8' styleList='2-4' titLen='16' rollLineHeight='70' rollSpan='1' rollSpeed='1' tpl='2'/] 说明: rollLineHeight: 滚动区行高;【按像素px计算】不能为空 rollSpeed: 滚动速度;【滚动速度,值越小越快,最小为1】不能为空 rollSpan: 滚动跨度;【一次滚动的像素,跨度越大,滚动就越快,但越不流畅】不能为空 topicId='1'滚动中的图片要属于一个专题 typeId='2'图片所在内容是图文类型 1.6.2图文向上滚动 [@cms_content_list topicId='2' typeId='2' styleList='2-2' titLen='16' rollLineHeight='115' rollSpan='1' rollCols='4' rollSpeed='1' isSleep='1' rollSleepTime='500' rollDisplayHeight='115' tpl='2'/] 1.6.3文字列表向上滚动 [@cms_content_list styleList='2-1' titLen='10' count='9' rollCols='3' rollDisplayHeight='20' rollLineHeight='29' rollSpeed='20' rollSleepTime='100' rollRows='1' dateFormat='MM-dd' datePosition='3' dateClass='red' channelOption='1' channelId='95' tpl='2'/] rollCols: 滚动列数 rollRows: 滚动行数 channelId='95':表示文字列表只获取栏目编号为95的内容。 |
||
---|---|---|---|
级别: 状元
|
5# 发表于:2014-06-17 13:50:13 IP:61.128.*.*
styleList=你取样式文件下看下有没有这个向下规定的样式,没有就要你自己写一个
|
||
---|---|---|---|
1
共1页