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

 找回密码
 立即注册
搜索

[已答复] flash 幻灯片调用

[复制链接]
tianshang2007 发表于 2009-10-11 12:37:10 | 显示全部楼层 |阅读模式
本帖最后由 lidq.jingwu 于 2009-10-13 15:00 编辑

这种幻灯片怎么调用呀。。。调了好几天都没有调出来。。。高手指点一下

<script type="text/javascript">
<!--
//可编辑内容开始(可放置特版中)
var pic_width=300; //图片宽度
var pic_height=260; //图片高度
var button_pos=2; //按扭位置 1左 2右 3上 4下
var stop_time=5000; //图片停留时间(1000为1秒钟)
var show_text=1; //是否显示文字标签 1显示 0不显示
var txtcolor="000000"; //文字色
var bgcolor="DDDDDD"; //背景色

//可编辑内容结束
var swf_height=show_text==1?pic_height+20:pic_height;

var pics="", mylinks="", texts="";
pics='../templates/caiqu/images/113633517327719011.jpg|../templates/caiqu/images/115616327168495499.jpg|../templates/caiqu/images/0920333271362612991.jpg||'
mylinks='http://green.sohu.com/20090904/n266453276.shtml|http://green.sohu.com/20090903/n266428190.shtml|http://green.sohu.com/photo/|http://green.sohu.com/20090901/n266376878.shtml|http://green.sohu.com/20090902/n266392269.shtml';
texts='洗澡碳指数全国城市大排行|全国主流月饼企业倡绿色包装 月饼价格趋合理|绿色影集:十种影响生活质量的睡觉方式|访谈:中国首个自愿碳减排标准将在年内出台|马达加斯加海域货轮沉没 7千吨润滑油泄漏';

var sohuFlash2 = new sohuFlash("../templates/caiqu/swf/allfocus5.swf", "sasFlashFocusreshow", pic_width, swf_height, "6");
sohuFlash2.addParam("quality", "high");
sohuFlash2.addParam("wmode", "opaque");
sohuFlash2.addVariable("pics",pics);
sohuFlash2.addVariable("links",mylinks);
sohuFlash2.addVariable("texts",texts);
sohuFlash2.addVariable("pic_width",pic_width);
sohuFlash2.addVariable("pic_height",pic_height);
sohuFlash2.addVariable("show_text",show_text);
sohuFlash2.addVariable("txtcolor",txtcolor);
sohuFlash2.addVariable("bgcolor",bgcolor);
sohuFlash2.addVariable("button_pos",button_pos);
sohuFlash2.addVariable("stop_time",stop_time);
sohuFlash2.write("sasFlashFocusreshow");
//-->
</script>
回复

使用道具 举报

 楼主| tianshang2007 发表于 2009-10-11 12:38:54 | 显示全部楼层
那位仁兄指点一下
回复

使用道具 举报

daymake 发表于 2009-10-11 15:41:24 | 显示全部楼层
求助的还要人花金币?
回复

使用道具 举报

 楼主| tianshang2007 发表于 2009-10-13 14:55:35 | 显示全部楼层
3# daymake


    不知道怎么用的就点了一下
回复

使用道具 举报

lidq.jingwu 发表于 2009-10-13 15:02:18 | 显示全部楼层
这是在js里面,它内部有一个类,必须找到那个类,加载进来才能使用。
var sohuFlash2 = new sohuFlash("../templates/caiqu/swf/allfocus5.swf", "sasFlashFocusreshow", pic_width, swf_height, "6");
回复

使用道具 举报

helosh 发表于 2009-10-13 15:13:20 | 显示全部楼层
无能为力,心情不是很好。不过还是得支持下。
回复

使用道具 举报

renyi618 发表于 2009-10-13 17:03:16 | 显示全部楼层
加深学习,还是支持
回复

使用道具 举报

skiden 发表于 2009-10-14 10:13:45 | 显示全部楼层
  1.         <!--{block name="spacenews" parameter="catid/24/haveattach/2/order/i.dateline DESC/limit/0,4/cachetime/83400/subjectlen/40/subjectdot/0/cachename/hotnewspic"}-->
  2.         <!--{eval $i=0;}-->
  3.         <!--{loop $_SBLOCK['hotnewspic'] $pkey $pvalue}-->
  4.         <!--{eval $pic[$i]=$pvalue['a_filepath'];}-->
  5.         <!--{eval $links[$i]=$pvalue[url];}-->
  6.         <!--{eval $text[$i]=$pvalue[subject];}-->
  7.         <!--{eval $i++;}-->
  8.         <!--{/loop}-->
  9.         <!--{eval $pic=implode($pic,"|");}-->
  10.         <!--{eval $links=implode($links,"|");}-->
  11.         <!--{eval $text=implode($text,"|");}-->
  12.         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="293" height="230">
  13.             <param name="movie" value="./model/data/nh/focus.swf">
  14.             <param name="quality" value="high">
  15.             <param name="wmode" value="transparent">
  16.             <param name="FlashVars" value="bcastr_file=<!--{eval echo $pic}-->&bcastr_link=<!--{eval echo $links}-->&bcastr_title=<!--{eval echo $text}-->&bcastr_config=0xffffff:|0:|0x77aa2d:|50:|0xffffff:|0x77aa2d:|0xff9900:|3:|3:|1:|_blank:">       
  17.             <embed src="./model/data/nh/focus.swf" FlashVars="bcastr_file=<!--{eval echo $pic}-->&bcastr_link=<!--{eval echo $links}-->&bcastr_title=<!--{eval echo $text}-->&bcastr_config=0xffffff:|0:|0x77aa2d:|50:|0xffffff:|0x77aa2d:|0xff9900:|3:|3:|1:|_blank:" width="293" height="230" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent"></embed>
  18.         </object>
复制代码
我是这样做的  你看下吧  希望对你有帮助
回复

使用道具 举报

 楼主| tianshang2007 发表于 2009-10-16 08:42:28 | 显示全部楼层
先试试。。。。谢谢了。。论坛热心人还挺多了。。。
回复

使用道具 举报

hffbi007 发表于 2009-11-2 17:21:14 | 显示全部楼层
要能随心所欲更换幻灯片的样子就好了...
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-16 12:15 , Processed in 0.085860 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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