请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

Discuz! 官方站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Discuz! X 最新研发动态 通过这个窗口,关注跟踪我们的研发进展 Discuz! 开发技术文库 - 给官方提建议

Discuz! X2 正式版下载 帮助网站实现一站式服务  商业支持服务咨询 下载 - 安装 - 常见问题 - 转换 - 讨论 - 购买

2012站长年会开启报名 限量船票免费发放 Discuz!十大荣誉用户评选 - Discuz!NT3.6发布 漫游引入QQ空间游戏 -一骑新区横扫三国-5d6d免费论坛

查看: 2335|回复: 13

[疑难] 这段循环怎么写? [复制链接]

Forum Legend

小田

Rank: 8Rank: 8

UID
683443
积分
4086
帖子
1850
威望
166
在线时间
1 小时
注册时间
2007-3-18
发表于 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>
复制代码
幻灯片图片循环 要怎么写?

Rank: 1

UID
702992
积分
12
帖子
14
威望
0
在线时间
0 小时
注册时间
2007-4-22
发表于 2007-9-16 10:51:50 |显示全部楼层

使用道具 举报

Forum Legend

小田

Rank: 8Rank: 8

UID
683443
积分
4086
帖子
1850
威望
166
在线时间
1 小时
注册时间
2007-3-18
发表于 2007-9-17 15:45:11 |显示全部楼层
没有人回答????????

使用道具 举报

Rank: 6Rank: 6

UID
609704
积分
2557
帖子
1525
威望
89
在线时间
50 小时
注册时间
2007-1-6
发表于 2007-9-17 16:15:26 |显示全部楼层
调用的代码呢?????
有问题来也可以来我们的论坛提问http://www.hidaren.com

使用道具 举报

Forum Legend

小田

Rank: 8Rank: 8

UID
683443
积分
4086
帖子
1850
威望
166
在线时间
1 小时
注册时间
2007-3-18
发表于 2007-9-17 16:19:20 |显示全部楼层
恩 幻灯片的  不知道怎么调用了

使用道具 举报

King

小蚂蚱

Rank: 6Rank: 6

UID
736898
积分
1342
帖子
1060
威望
5
在线时间
77 小时
注册时间
2007-6-27
发表于 2007-9-17 16:27:49 |显示全部楼层
貌似论坛有这个吧..你搜索下看看.上次好象看到过。

使用道具 举报

Forum Legend

小田

Rank: 8Rank: 8

UID
683443
积分
4086
帖子
1850
威望
166
在线时间
1 小时
注册时间
2007-3-18
发表于 2007-9-19 16:24:20 |显示全部楼层
楼上的 我搜索什么关键字。

使用道具 举报

Rank: 3Rank: 3

UID
911533
积分
382
帖子
434
威望
0
在线时间
0 小时
注册时间
2008-3-27
发表于 2008-4-24 14:51:54 |显示全部楼层
幻灯片调用还是个大问题,没有详细的教程呀

使用道具 举报

Rank: 3Rank: 3

UID
909368
积分
241
帖子
296
威望
0
在线时间
0 小时
注册时间
2008-3-22
发表于 2008-4-25 17:54:31 |显示全部楼层
等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等等的

使用道具 举报

Rank: 2

UID
872694
积分
124
帖子
123
威望
0
在线时间
0 小时
注册时间
2007-12-25
发表于 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 编辑 ]

使用道具 举报

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

fastpost

手机版|Archiver|北京康盛新创科技有限责任公司 ( 京ICP证110024号|京网文[2011]0019-007号 )  

GMT+8, 2012-2-13 04:59 , Processed in 0.128590 second(s), 14 queries , Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部