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

 找回密码
 立即注册
搜索

[分享] 发个定时消失的背投广告(图片)

[复制链接]
saleroad 发表于 2008-6-22 06:47:53 | 显示全部楼层 |阅读模式
以前发的是针对flash动画的背投,今天再发一个使用图片格式的背投广告。
效果演示:http://www.lubesale.com
使用方法:
在后台,添加“自定义广告”,然后把下面的代码拷贝进去,再把调用代码插入模板就ok了。
  1. <div align="center" id="miman">
  2. <table width="960" border="0" cellspacing="0" cellpadding="0">
  3. <tr>
  4. <td><a href="http://www.lubesale.com" target="_blank"><img src="bt.gif" width="960" height="360" border="0"></a></td>
  5. </tr>
  6. </table>
  7. </div>

  8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <title>定时关闭的背投广告代码</title>
  13. <script>
  14. var time_out = 3000;
  15. function log_start()
  16. {
  17. window.miman.style.visibility="visible";
  18. window.setTimeout( "real_log_start()", time_out );
  19. return false;
  20. }
  21. function real_log_start()
  22. {
  23. window.miman.style.display="none";
  24. }
  25. </script>
  26. </head>

  27. <body onLoad="log_start()">
  28. <p>
  29. </p>
  30. </body>
  31. </html>
复制代码
回复

使用道具 举报

lotxd 发表于 2008-6-22 11:54:58 | 显示全部楼层
留个记号
回复

使用道具 举报

yimonet 发表于 2008-6-22 13:08:46 | 显示全部楼层
好东西
收藏了
回复

使用道具 举报

xk_100 发表于 2008-6-22 14:46:20 | 显示全部楼层
顶一下
试一下看看!
回复

使用道具 举报

金领阶层2 发表于 2008-6-22 15:13:27 | 显示全部楼层
哈哈哈
回复

使用道具 举报

odippo 发表于 2008-6-22 15:19:24 | 显示全部楼层
不错 谢谢了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 23:37 , Processed in 0.091932 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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