网页设计问题
2009-05-06 20:06
246 查看
好多网页中都有一个模块,就是几幅图片依次在一个区域轮换显示,通过点击图片可以连接到指定的网页中,我在”搜狐体育“的网页中找出了部分代码如下。哪位知道这是怎么实现的可以教一下我吗!可以的话把完整的源代码给我学习学习!!谢谢了!
<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>
<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>
相关文章推荐
- 如果网页内容需要支持多语言,你会怎么做?在设计和开发多语言网站时,有哪些问题你必须要考虑?
- 如果网页内容需要支持多语言,你会怎么做?在设计和开发多语言网站时,有哪些问题你必须要考虑?
- 网页设计必须注意的几个问题
- 网页设计问题大搜集
- 网页设计-[ie与firefox的css兼容问题整理!]
- 解决网页设计中网页元素错乱的问题
- 网页设计中中文乱码的问题
- 网页设计中常见的兼容性问题
- 网页设计中,相对路径与绝对路径的问题
- 如果网页内容需要支持多语言,你会怎么做?在设计和开发多语言网站时,有哪些问题你必须要考虑?
- 如果网页内容需要支持多语言,你会怎么做?在设计和开发多语言网站时,有哪些问题你必须要考虑?
- 网页设计常见代码问题集锦
- 网页设计中的自动换行问题
- 网页设计常见问题
- 网页设计中的自动换行问题 []
- Div + Css 设计网页时浮动问题的解决方法
- 网页设计问题大搜集(有些细节的问题,很值得学习)
- HTML设计网页中的字体的问题
- 网页设计中应注意的细节问题
- 网页设计中另人头疼的浏览器兼容问题