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

 找回密码
 立即注册
搜索

[疑难] 以下代码应该怎样调用幻灯啊?

[复制链接]
独孤求婚 发表于 2008-6-10 17:37:10 | 显示全部楼层 |阅读模式
  1. <SCRIPT language=JavaScript
  2. src="{S_URL}/templates/$_SCONFIG[template]/images/common/xcargetflash.js"
  3. type=text/javascript></SCRIPT>

  4. <!--{block name="spacenews" parameter="grade/4/catid/1,2,3,4,5,6,149/haveattach/2/order/i.viewnum

  5. DESC/limit/0,6/cachetime/1800/subjectlen/20/cachename/flash/tpl/data"}--><!--首页幻灯-->
  6. <DIV id=focusViwer align=center></DIV>
  7. <SCRIPT type=text/javascript>
  8. <!--

  9. var focus_width=311;
  10. var focus_height=175;
  11. var text_height=0;
  12. var swf_height = focus_height+text_height;
  13. var curhref=document.location.href;

  14. var focus_pic
  15. ='/img/07news/gNzmvfT4kj7114.jpg|/img/07news/NR7VPpypKS5395.jpg|/img/07news/A3vvd4jlVM1128.jpg|/img/07news/uZclT792lE9122.jpg|/img/07news/hc70hOxJbU1321.jpg|/img/07news/fRx040CMXO4314.jpg';

  16. var focus_pic_url
  17. ='/20080606/1016/news_32273_1.html|http://topic.xcar.com.cn/08se_quarter/08club_top1/|/20080605/1016/news_32181_1.html|/20080604/1016/news_32121_1.html|http://www.xcar.com.cn/xpublic/common/ad_redirect.php?
  18. id=3224|http://www.xcar.com.cn/xpublic/common/ad_redirect.php?id=2249';

  19. var pics='';
  20. var links= '';

  21. var texts='';
  22. pics=focus_pic;links=focus_pic_url;
  23. var FocusFlash = new xcarFlash("{S_URL}/templates/$_SCONFIG[template]/images/slide/pixviewer.swf",

  24. "focusflash", focus_width, swf_height, "6", "#CCCCCC", false, "High");
  25. FocusFlash.addParam("allowScriptAccess", "sameDomain");
  26. FocusFlash.addParam("menu", "false");
  27. FocusFlash.addParam("wmode", "opaque");

  28. FocusFlash.addVariable("pics", pics);
  29. FocusFlash.addVariable("links", links);
  30. FocusFlash.addVariable("texts", texts);
  31. FocusFlash.addVariable("borderwidth", focus_width);
  32. FocusFlash.addVariable("borderheight", focus_height);
  33. FocusFlash.addVariable("curhref", curhref);
  34. FocusFlash.addVariable("textheight", text_height);
  35. FocusFlash.write("focusViwer");
  36. //-->
  37. </SCRIPT>
复制代码

主要是focuspic和url的循环不会做。帮帮忙

[ 本帖最后由 独孤求婚 于 2008-6-10 17:41 编辑 ]
回复

使用道具 举报

douniwancom 发表于 2008-6-10 18:21:23 | 显示全部楼层
美女 站长呀, 可惜 我不会 帮你顶下吧~
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 18:21 , Processed in 0.101181 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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