JS仿flash动态切换广告代码

来自: 分享 作者: 水煮鱼 时间: 2010-11-12 11:32 查看: 7761 回复: 3

用到Discuz论坛肯定很不错

截图:
demo4.png

源代码:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title></title>
  6. <link rel="stylesheet" href="http://www.zbw123.com/webmaster/08/styles/index.css" type="text/css" media="screen" />
  7. <script type="text/javascript" src="http://www.zbw123.com/webmaster/08/scripts/index.js"></script>
  8. <script type="text/javascript">
  9. addOnloadEvent(autoShowAll);
  10. </script>
  11. </head>
  12. <body>
  13. <div class="ad_show">
  14.   <div class="cover_t_l"></div>
  15.   <div class="cover_t_r"></div>
  16.   <div class="cover_b_l"></div>
  17.   <div class="cover_b_r"></div>
  18.   <div class="cover_b"> <img src="http://www.zbw123.com/webmaster/08/images/ad_show_pre.gif" id="adShowPre" /> <span id="adShowNow"></span><span>/</span><span id="adShowAll"></span> <img src="http://www.zbw123.com/webmaster/08/images/ad_show_next.gif" id="adShowNext" /> </div>
  19.   <div id="adShowImg">
  20.     <div><a href="#" target="_blank"><img src="http://t1.baidu.com/it/u=2022684285,109868946&fm=0&gp=0.jpg" /></a><a href="#" target="_blank"><img src="http://t2.baidu.com/it/u=2884761502,1103019297&fm=0&gp=0.jpg" /></a><a href="#" target="_blank"><img src="http://t3.baidu.com/it/u=2376266915,2167662160&fm=15&gp=0.jpg" /></a><a href="#" target="_blank"><img src="http://t1.baidu.com/it/u=3272364846,3407495386&fm=0&gp=0.jpg" /></a><a href="#" target="_blank"><img src="http://t1.baidu.com/it/u=3272364846,3407495386&fm=0&gp=0.jpg" /></a></div>
  21.   </div>
  22. </div>
  23. </body>
  24. </html>
复制代码
最新回复 3 条
3210 2011-7-16 21:57:41
沙发 沙发  我竟然抢到沙发  
www.vokwo.com 2011-9-8 14:00:36
沙发 沙发  我竟然抢到沙发  
刘呆千 2011-11-28 17:31:32
大家顶啊这么好的帖子楼主辛苦了
您需要登录后才可以回帖 登录 | 注册
Smilies Code
高级模式