Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 这段循环怎么写?

[复制链接]
pcload 发表于 2007-9-16 09:33:57 | 显示全部楼层 |阅读模式
  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>
复制代码
幻灯片图片循环 要怎么写?
开心有关 发表于 2007-9-16 10:51:50 | 显示全部楼层
回复

使用道具 举报

 楼主| pcload 发表于 2007-9-17 15:45:11 | 显示全部楼层
没有人回答????????
回复

使用道具 举报

麻吉求求 发表于 2007-9-17 16:15:26 | 显示全部楼层
调用的代码呢?????
回复

使用道具 举报

 楼主| pcload 发表于 2007-9-17 16:19:20 | 显示全部楼层
恩 幻灯片的  不知道怎么调用了
回复

使用道具 举报

sdyclh 发表于 2007-9-17 16:27:49 | 显示全部楼层
貌似论坛有这个吧..你搜索下看看.上次好象看到过。
回复

使用道具 举报

 楼主| pcload 发表于 2007-9-19 16:24:20 | 显示全部楼层
楼上的 我搜索什么关键字。
回复

使用道具 举报

ibookle 发表于 2008-4-24 14:51:54 | 显示全部楼层
幻灯片调用还是个大问题,没有详细的教程呀
回复

使用道具 举报

mikky 发表于 2008-4-25 17:54:31 | 显示全部楼层
等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等的
回复

使用道具 举报

xjun87 发表于 2008-4-25 18:05:54 | 显示全部楼层
<!--{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 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-2 11:16 , Processed in 0.101806 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表