📄 focus_ad.ftl
字号:
<#assign styleWidth = itemParaMap.style_width?number >
<#assign styleHeight = itemParaMap.style_height?number >
<#assign flashType = itemParaMap.flash_type?default("1") >
<div id="${divID}" class="${divID} pageItemOrder" style="width:${styleWidth}px;height:${styleHeight}px;<#if isShow?? && isShow><#else>display:none;</#if>">
<#if isManage>
<#assign h2TitleHref = ""/>
<#assign h2Title = "焦点导读"/>
<#include "h2_inc.ftl"/>
<#else>
<div class="hd"><B class=lc></B><B class=rc></B></div>
</#if>
<div class="innerContent">
<#comment>图片描述</#comment>
<#assign picConts = ""/>
<#comment>图片路径</#comment>
<#assign picLocs = ""/>
<#comment>图片链接</#comment>
<#assign picLinks = ""/>
<#assign focusImageList = _PortalUtil.getFocusImage("-1")>
<#if flashType == "1">
<#list focusImageList as focusImage>
<#if focusImage_index == 0>
<#assign picConts = picConts + focusImage["post_title"]/>
<#assign picLocs = picLocs + _contextPath + focusImage["image"]/>
<#assign picLinks = picLinks + focusImage["url"]/>
<#else>
<#assign picConts = picConts + "|" + focusImage["post_title"]/>
<#assign picLocs = picLocs + "|" + _contextPath + focusImage["image"]/>
<#assign picLinks = picLinks + "|" + focusImage["url"]/>
</#if>
</#list>
<SCRIPT src="${_contextPath}/ef/res/flashobj.js" type=text/javascript></SCRIPT>
<DIV class=focusFlash>
<DIV id=focusFlash></DIV>
<SCRIPT>
var sohuFlash2 = new sohuFlash("${_contextPath}/ef/res/swf/demo001.swf", "27", 522, 245, "7");
sohuFlash2.addParam("quality", "high");
sohuFlash2.addParam("wmode", "opaque");
sohuFlash2.addVariable("image","${picLocs}");
sohuFlash2.addVariable("url","${picLinks}");
sohuFlash2.addVariable("info", "${picConts}");
sohuFlash2.addVariable("stopTime","1");
sohuFlash2.write("focusFlash");
</SCRIPT>
</DIV>
<#elseif flashType == "2">
<#list focusImageList as focusImage>
<#if focusImage_index == 0>
<#assign picConts = picConts + focusImage["post_title"]/>
<#assign picLocs = picLocs + _contextPath + focusImage["image"]/>
<#assign picLinks = picLinks + focusImage["url"]/>
<#else>
<#assign picConts = picConts + "|" + focusImage["post_title"]/>
<#assign picLocs = picLocs + "|" + _contextPath + focusImage["image"]/>
<#assign picLinks = picLinks + "|" + focusImage["url"]/>
</#if>
</#list>
<#assign text_height = 20>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width='${styleWidth}' height='${styleHeight}'>
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="${_contextPath}/ef/res/swf/focus.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#F0F0F0">
<param name="menu" value="false">
<param name=wmode value="opaque">
<param name="FlashVars" value="pics=${picLocs}&links=${picLinks}&texts=${picConts}&borderwidth=${styleWidth}&borderheight=${styleHeight-text_height}&textheight=${text_height}">
<embed ID="focus_flash" src="${_contextPath}/ef/res/swf/focus.swf" wmode="opaque" FlashVars="pics=${picLocs}&links=${picLinks}&texts=${picConts}&borderwidth=${styleWidth}&borderheight=${styleHeight-text_height}&textheight=${text_height}" menu="false" bgcolor="#F0F0F0" quality="high" width='${styleWidth}' height='${styleHeight}' allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</#if>
<div class="clean"></div>
</div>
<div class="ft"><B class=lc></B><B class=rc></B></div>
<div class="clean"></div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -