我这个是仿八界网逛街频道首页的幻灯片~完整代码如下:- <!--flash幻灯展示开始-->
- <div id=flash_show>
- <div id=flash_img></div>
- <div id=flash_btn>
- <div id=btn_box><a onClick="javascript:showImage(0);return false;" style="cursor:hand;" target=_self><img height=13 alt=第1幅
- src="{S_URL}/templates/$_SCONFIG[template]/images/shopping_flash_btn_1.gif" style="cursor:hand;" width=13 border=0></a></div>
- <div id=btn_box><a onClick="javascript:showImage(1);return false;" style="cursor:hand;" target=_self><img height=13 alt=第2幅
- src="{S_URL}/templates/$_SCONFIG[template]/images/shopping_flash_btn_2.gif" style="cursor:hand;" width=13 border=0></a></div>
- <div id=btn_box><a onClick="javascript:showImage(2);return false;" style="cursor:hand;" target=_self><img height=13 alt=第3幅
- src="{S_URL}/templates/$_SCONFIG[template]/images/shopping_flash_btn_3.gif" style="cursor:hand;" width=13 border=0></a></div>
- <div id=btn_box><a onClick="javascript:showImage(3);return false;" style="cursor:hand;" target=_self><img height=13 alt=第4幅
- src="{S_URL}/templates/$_SCONFIG[template]/images/shopping_flash_btn_4.gif" style="cursor:hand;" width=13 border=0></a></div>
- </div>
- </div>
- <!--flash幻灯展示结束-->
- <!--flash幻灯展示控制开始-->
- <div id=flash_show_ctl>
- <div id=flash_show_ctl_msg><span class=li_dot></span><a id=flash_title
- href="{S_URL}"></a> </div>
- </div>
- <!--{block name="spacenews" parameter="catid/90,98,100,101,102/haveattach/2/haveattach/1/showattach/1/limit/0,4/cachetime/900/subjectlen/28/subjectdot/1/cachename/huandengpian/tpl/data"}--><!--逛街幻灯片-->
- <script language="javascript" type="text/javascript">
- var fImgs = new Array();
- <!--{eval $i=1;}-->
- <!--{loop $_SBLOCK['huandengpian'] $value}-->
- fImgs[$i] = {title:"$value[subject]",img:"$value[a_thumbpath]",href:"$value[url]"};
- <!--{eval $i++;}-->
- <!--{/loop}-->
- imagePlay();
- </script>
- <!--flash幻灯展示控制结束-->
复制代码 在页头已经调用了:- <SCRIPT src="{S_URL}/templates/$_SCONFIG[template]/js/shopping_scroll.js" type=text/javascript></SCRIPT><!--幻灯片JS-->
复制代码 紫琼帮忙看看~~~~
调不出来,是不是这段- fImgs[$i] = {title:"$value[subject]",img:"$value[a_thumbpath]",href:"$value[url]"};
复制代码 书写不正确?
怎么办呀???
[ 本帖最后由 a0000091 于 2008-4-3 16:37 编辑 ] |