Manyou诚邀开发者加盟 | 常见问题
《站长》俱乐部官方群公布 城市联络员机会多多
立即免费下载 Discuz!7.0.0 正式版
安装升级指南 | 用户手册 | 新手建站学堂
基于.net架构的Discuz!NT2.6正式版发布
Comsenz公司2009年招贤纳士,期待您的加盟
Discuz!收费服务内容及价格
7月重庆、成都、西安三地社区运营实战特训速报名
Discuz!/UCHome 专用官方虚拟主机
牧场新服一起联运:豆浆机免费带回家
基于Discuz!的免费论坛空间5D6D
康盛创想《站长》俱乐部18城市互动之旅报名ing
返回列表 回复 发帖

这段循环怎么写?

  1. <script type="text/javascript">
  2. <!--

  3.         var focus_width=289
  4.         var focus_height=329
  5.         var text_height=25
  6.         var swf_height = focus_height+text_height
  7.         var curhref=document.location.href;
  8.        
  9.         var pics='http://img.daqi.com/upload/2007-09-15/1189828962_00494_small.jpg|http://img.daqi.com/upload/2007-09-14/1189733415_00494_small.jpg|http://img.daqi.com/upload/2007-09-13/1189646177_00494_small.jpg|http://img.daqi.com/upload/2007-09-14/1189761938_00352_small.jpg|http://img.daqi.com/upload/2007-09-14/1189758361_00554_small.jpg';
  10.         var links='/jd/index.html|/jd/index.html|/jd/index.html|/jd/index.html|/jd/index.html';
  11.         var texts='霆锋柏芝看戏 Lucas墨镜照曝光|日本女星可爱表情大集合|恐怖电影中的美丽女主角们|女星在化妆间里的德性|张惠妹爆乳露底作风火辣';
  12.        
  13.         var FocusFlash = new daqi_focus_flash("http://www.daqi.com/common/flash/daqi_focus_flash.swf", "focusflash", focus_width, swf_height, "7", "#FFFFFF", false, "High");
  14.         FocusFlash.addParam("allowScriptAccess", "sameDomain");
  15.         FocusFlash.addParam("menu", "false");
  16.         FocusFlash.addParam("wmode", "opaque");
  17.        
  18.         FocusFlash.addVariable("pics", pics);
  19.         FocusFlash.addVariable("links", links);
  20.         FocusFlash.addVariable("texts", texts);
  21.         FocusFlash.addVariable("borderwidth", focus_width);
  22.         FocusFlash.addVariable("borderheight", focus_height);
  23.         FocusFlash.addVariable("textheight", text_height);
  24.         FocusFlash.addVariable("curhref", curhref);
  25.         FocusFlash.write("focusViwer");

  26. //-->
  27. </script>
复制代码
幻灯片图片循环 要怎么写?
没有人回答????????
调用的代码呢?????
恩 幻灯片的  不知道怎么调用了
貌似论坛有这个吧..你搜索下看看.上次好象看到过。
楼上的 我搜索什么关键字。
幻灯片调用还是个大问题,没有详细的教程呀
等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等的
<!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/limit/0,4/cachetime/11930/cachename/picnews/tpl/data"}--><!--{if !empty($_SBLOCK['picnews'])}-->
<script type="text/javascript">
<!--{eval $i=1;}-->
<!--{loop $_SBLOCK['picnews'] $key $value}-->
imgUrl$i="$value[a_thumbpath]";
imgtext$i="<!--{eval echo addslashes($value[subject])}-->"
imgLink$i=escape("<!--{eval echo url_remake($value['url']);}-->");
<!--{eval $i++;}-->
                        <!--{/loop}-->
<!--

        var focus_width=289
        var focus_height=329
        var text_height=25
        var swf_height = focus_height+text_height
        var curhref=document.location.href;
        
        var pics=imgUrl1|imgUrl2|imgUrl3|imgUrl4|imgUrl5;
        var links='imgLink1|imgLink2|imgLink3|imgLink4|imgLink5';
        var texts='imgtext1|imgtext2|imgtext3|imgtext4|imgtext5';
        
        var FocusFlash = new daqi_focus_flash("http://www.daqi.com/common/flash/daqi_focus_flash.swf", "focusflash", focus_width, swf_height, "7", "#FFFFFF", false, "High");
        FocusFlash.addParam("allowScriptAccess", "sameDomain");
        FocusFlash.addParam("menu", "false");
        FocusFlash.addParam("wmode", "opaque");
        
        FocusFlash.addVariable("pics", pics);
        FocusFlash.addVariable("links", links);
        FocusFlash.addVariable("texts", texts);
        FocusFlash.addVariable("borderwidth", focus_width);
        FocusFlash.addVariable("borderheight", focus_height);
        FocusFlash.addVariable("textheight", text_height);
        FocusFlash.addVariable("curhref", curhref);
        FocusFlash.write("focusViwer");

//-->
</script>
</if>

试下

[ 本帖最后由 xjun87 于 2008-4-25 18:08 编辑 ]
返回列表