本帖最后由 lilovelo 于 2008-11-16 15:19 编辑
- <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/subjectlen/40/showdetail/1/limit/0,5/cachetime/8000/cachename/picnews/tpl/data"}-->
- <!--FLASH图片组 -->
- <script language='javascript'>
- linkarr = new Array();
- picarr = new Array();
- textarr = new Array();
- var swf_width=300;
- var swf_height=240;
- var files = "";
- var links = "";
- var texts = "";
- <!--{eval $i=1;}-->
- <!--{loop $_SBLOCK['picnews'] $key $value}-->
- linkarr[$i] = "<!--{eval echo url_remake($value['url']);}-->";
- picarr[$i] = "$value[a_thumbpath]";
- textarr[$i] = "$value[subject]";
- <!--{eval $i++;}-->
- <!--{/loop}-->
- for(i=1;i<picarr.length;i++){
- if(files=="") files = picarr[i];
- else files += "|"+picarr[i];
- }
- for(i=1;i<linkarr.length;i++){
- if(links=="") links = linkarr[i];
- else links += "|"+linkarr[i];
- }
- for(i=1;i<textarr.length;i++){
- if(texts=="") texts = textarr[i];
- else texts += "|"+textarr[i];
- }
- document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
- document.write('<param name="movie" value="{S_URL}/templates/$_SCONFIG[template]/images/bcastr3.swf"><param name="quality" value="high">');
- document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
- document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
- document.write('<embed src="{S_URL}/templates/$_SCONFIG[template]/images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
- </script>
复制代码
bcastr3.rar
(14.11 KB, 下载次数: 167)
- <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/subjectlen/40/showdetail/1/limit/0,5/cachetime/8000/cachename/picnews/tpl/data"}-->
- <!--FLASH图片组 -->
- <SCRIPT type=text/javascript>
- <!--
- var _width = 358
- var _height = 270
- var text_height = 30
- var flash_height = _height + text_height
- var pic_arr = new Array();
- var link_arr = new Array();
- var text_arr = new Array();
- var i = 0;
- <!--{eval $i=0;}-->
- <!--{loop $_SBLOCK['picnews'] $key $value}-->
- pic_arr[$i] = "$value[a_thumbpath]";
- link_arr[$i] = "<!--{eval echo url_remake($value['url']);}-->";
- text_arr[$i] = "$value[subject]";
- <!--{eval $i++;}-->
- <!--{/loop}-->
- //
- var p = pic_arr.join("|");
- var l = link_arr.join("|");
- var t = text_arr.join("|");
- var f = "{S_URL}/templates/$_SCONFIG[template]/images/flash.swf";
- document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ _width +'" height="'+ flash_height +'">');
- document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+f+'"><param name="quality" value="high"><param name="bgcolor">');
- document.write('<param name="menu" value="false"><param name=wmode value="transparent">');
- document.write('<param name="FlashVars" value="pics='+p+'&links='+l+'&texts='+t+'&borderwidth='+_width+'&borderheight='+_height+'&textheight='+text_height+'">');
- document.write('<embed ID="focus_flash" src="'+f+'" wmode="opaque" FlashVars="pics='+p+'&links='+l+'&texts='+t+'&borderwidth='+_width+'&borderheight='+_height+'&textheight='+text_height+'" menu="false" quality="high" width="'+ _width +'" height="'+ flash_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
- document.write('</object>');
- //-->
- </SCRIPT>
复制代码
flash.rar
(10.53 KB, 下载次数: 118)
|