原帖由 tong0.net 于 2007-6-4 20:55 发表
153560
请问这个图片组怎么加啊~~~我新手不会啊,,,我的网站还没有这个
www.wzfzl.com - <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/limit/0,5/cachetime/11930/cachename/picnews/tpl/data"}-->
- <!--FLASH图片组 -->
- <SCRIPT type=text/javascript>
- <!--
- var _width = 298
- var _height = 150
- var text_height = 20
- 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]/pixviewer.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图片组 -->
复制代码 不需要你加什么,只要你开通了资讯频道,并且有图片资讯(不是采集来的)即可。 |