📄 style2-1_core.ftl
字号:
[#--
图文列表或标题列表向上滚动
显示区域高度:rollDisplayHeight
滚动区行高:rollLineHeight
滚动列数:rollCols
滚动速度:rollSpeed
滚动停顿时间:rollSleepTime
滚动次数:rollCount
滚动跨度:rollSpan
是否停顿:isSleep
--]
[#assign noPicFloat=true/]
[#assign RLID = list.hashCode()/]
[#if RLID<0][#assign RLID = 0-RLID/][/#if]
<div id="roll-${RLID}" style="overflow:hidden;height:${rollDisplayHeight}px;" onmouseover="clearInterval(proll${RLID}.pevent)" onmouseout="proll${RLID}.pevent=setInterval(function(){proll${RLID}.roll.call(proll${RLID})},proll${RLID}.speed)">
<div id="roll-orig-${RLID}">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
[#assign tableCellCount = list?size]
[#if tableCellCount<rollCols]
[#assign tableCellCount = rollCols/]
[#elseif tableCellCount%rollCols != 0]
[#assign tableCellCount = tableCellCount+(rollCols-tableCellCount%rollCols)/]
[/#if]
[#list 0..tableCellCount-1 as i]
[#if i%rollCols==0]<tr>[/#if]<td height="${rollLineHeight}"[#if i==0] id="roll-line-${RLID}"[/#if][#if i<rollCols] width="${100/rollCols}%"[/#if]>[#rt/]
[#if i gte list?size]
[#t/]
[#else]
[#assign ctt=list[i]/]
[#include style_core/][#t/]
[/#if]
</td>[#if i%rollCols==rollCols-1]</tr>[/#if][#lt/]
[/#list]
</table>
</div>
<div id="roll-copy-${RLID}"></div>
</div>
<script type="text/javascript">
var proll${RLID}=new JCore.UpRoller(${RLID},${rollSpeed},[#if isSleep=="1"]true[#else]false[/#if],${rollSleepTime},${rollCount},${rollSpan},${rollLineHeight});
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -