好多网页中都有一个模块,就是几幅图片依次在一个区域轮换显示,通过点击图片可以连接到指定的网页中,我在”搜狐体育“的网页中找出了部分代码如下。哪位知道这是怎么实现的可以教一下我吗!可以的话把完整的源代码给我学习学习!!谢谢了!
<div id="flashcontent01"></div>
<script type="text/javascript">
var speed =15000;
var pics='http://i4.itc.cn/20090506/76c_83f05023_1daa_430f_bab6_84da7a634dab_0.jpg|http://i6.itc.cn/20090506/76c_51a0789f_c896_442a_9206_368f7e779db0_0.jpg|http://i8.itc.cn/20090506/547_4fcb52bc_ca88_488e_9575_fc2062532fe4_0.jpg|http://i4.itc.cn/20090506/76c_b1c8dbf9_a372_4801_bc8a_f5fa07bbd8ae_0.jpg|http://photocdn.sohu.com/focusUp/20090506/1122462652052308741.jpg|http://i4.itc.cn/20090505/76c_daf0e266_a8b9_49c6_8483_d1c689ec9c04_0.jpg|http://photocdn.sohu.com/focusUp/20090506/10092904316531778.jpg';
var mylinks='http://sports.sohu.com/20090506/n263793602.shtml|http://sports.sohu.com/20090506/n263794142.shtml|http://pic.sports.sohu.com/group-155240.shtml|http://pic.sports.sohu.com/group-155289.shtml|http://sports.sohu.com/20090506/n263802205.shtml|http://sports.sohu.com/20090505/n263782456.shtml|http://sports.sohu.com/20090505/n263766247.shtml';
var texts='火箭备战 巴蒂尔伤痕清晰可见|火箭备战 姚明:我的膝盖没问题|骑士vs老鹰 詹姆斯咆哮|掘金战小牛 马丁扫堂腿险伤天王|联盟最受欢迎拉拉队美女|独家组图详解姚明受伤全过程|詹姆斯力压科比当选常规赛MVP';
var sohuFlash2 = new sohuFlash("http://sports.sohu.com/upload/NBAIindex090304/focus.swf","flashcontent01","290","345","8","#ffffff");
sohuFlash2.addParam("quality", "high");
//sohuFlash2.addParam("salign", "t");
sohuFlash2.addParam("wmode", "opaque");
sohuFlash2.addVariable("speed",speed);
sohuFlash2.addVariable("p",pics);
sohuFlash2.addVariable("l",mylinks);
sohuFlash2.addVariable("icon",texts);
sohuFlash2.write("flashcontent01");
</script>
</div>