怎样制作网页上的幻灯片啊?

发布网友 发布时间:2022-04-26 23:37

我来回答

1个回答

热心网友 时间:2022-04-22 12:40

简单得很,,FLASH+JS配合搞定。。。FLASH网上下载。。。或者你浏览了某个FLASH后,到本地的临时文件夹中找到。。。代码就是下面的。。。

把pics改成幻灯片的每张图片,,
把texts改成你的每个标题。。。

<script type="text/javascript">
<!--

var focus_width=318
var focus_height=330
var text_height=20
var swf_height = focus_height+text_height

var pics='/images/upimage/6334618635811250.jpg|/images/upimage/6334618224248750.jpg|/images/upimage/633461868584092500.jpg'
var links='starcontentx660.aspx|starcontentx4.aspx|newcontentx313.aspx'
var texts='饶天亮|陈瑞|卓依婷演出价格6万'
document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/playswfnew.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="images/playswfnew.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#C5C5C5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');

//-->
</script>

你可以参考一下明星经纪网的 http://www.mx160.com

参考资料:http://www.mx160.com

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com