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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 大型网站都在用的超大气对联广告代码放送了

[复制链接]
草海情结 发表于 2013-12-12 20:36:23 | 显示全部楼层 |阅读模式
演示图


代码如下:
  1. <font size="2" color="#696969"><!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. </head>
  7. <body style="height:2000px;">

  8. <style type="text/css">
  9. *{margin:0;padding:0;list-style-type:none;}
  10. a,img{border:0;color:#5e5e5e;text-decoration:none;}
  11. body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}
  12. *html,*html body{background-image:url(about:blank);background-attachment:fixed;}

  13. /* fixediv */
  14. .fixediv{position:fixed;top:140px;z-index:9999;height:216px;width:100px;}
  15. *html .fixediv{position:absolute;top:expression(eval(document.documentElement.scrollTop));margin:140px 0 0 0;}
  16. .fixediv-l{left:0px;}
  17. .fixediv-r{right:0px;}
  18. .fixediv .btn{height:25px;background:#CCCCCC;text-align:right;line-height:25px;overflow:hidden;}
  19. </style>

  20. <div id="Bar1190_big" class="fixediv fixediv-l">
  21.         <div class="btn"><a href="javascript:void(0);" onClick="bar1190_hidden()">关闭</a> </div>
  22.         <a href="http://</font><span style="color: rgb(105, 105, 105); font-size: small; line-height: 19px; ">www.gzcaohai.com</span><font size="2" color="#696969">/" target="_blank"><img width="100" height="155" src="images/1.jpg" alt="草海论坛" /></a>
  23. </div>
  24. <div id="Bar1190_small" class="fixediv fixediv-l" style="width:25px;display:none;">
  25.         <div class="btn"><a href="javascript:void(0);" onClick="bar1190_show()">展开</a></div>
  26.         <a  target="_blank"><img width="25" height="155" src="images/2.jpg" alt="草海论坛" /></a>
  27. </div>



  28. <div id="Bar11901_big" class="fixediv fixediv-r">
  29.         <div class="btn"><a href="javascript:void(0);" onClick="bar11901_hidden()">关闭</a> </div>
  30.         <a  target="_blank"><img width="100" height="155" src="images/1.jpg" alt="草海论坛" /></a>
  31. </div>
  32. <div id="Bar11901_small" class="fixediv fixediv-r" style="width:25px;display:none;">
  33.         <div class="btn"><a href="javascript:void(0);" onClick="bar11901_show()">展开</a></div>
  34.         <a  target="_blank"><img width="25" height="155" src="images/2.jpg" alt="草海论坛" /></a>
  35. </div>

  36. <script type="text/javascript">
  37. function bar1190_show(){
  38.    document.getElementById('Bar1190_big').style.display='';
  39.    document.getElementById('Bar1190_small').style.display='none';
  40. }
  41. function bar1190_hidden(){
  42.    document.getElementById('Bar1190_big').style.display='none';
  43.    document.getElementById('Bar1190_small').style.display='';
  44. }
  45. var autohide1190 = setTimeout("bar1190_hidden()",5000);


  46. function bar11901_show(){
  47.    document.getElementById('Bar11901_big').style.display='';
  48.    document.getElementById('Bar11901_small').style.display='none';
  49. }
  50. function bar11901_hidden(){
  51.    document.getElementById('Bar11901_big').style.display='none';
  52.    document.getElementById('Bar11901_small').style.display='';
  53. }
  54. var autohide11901 = setTimeout("bar11901_hidden()",5000);
  55. </script>
  56. <div style="text-align:center;clear:both">
  57. </div>
  58. </body>
  59. </html></font>
复制代码

使用方法:
分别做好images/1.jpg的几张图片(共四张),将如上代码加在首页任意位置就行!超简单

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

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

本版积分规则

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

GMT+8, 2024-9-29 21:34 , Processed in 0.153815 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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