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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 各种各样的广告代码大全

[复制链接]
qwzx 发表于 2008-5-29 16:07:46 | 显示全部楼层 |阅读模式
左栏浮动广告

  1. <script language=javascript>var specialcode="<DIV id=searchspe style='Z-INDEX: <script language=javascript>var specialcode="<DIV id=searchspe style='Z-INDEX: 100; right: 1px; POSITION: absolute; TOP: 180px;'><TABLE cellSpacing=0 cellPadding=0 width=150 style='border-left:1px solid #2E6287;border-top:1px solid #2E6287;border-right:1px solid #2E6287;font-size:12px;color:#ffffff; border-bottom-color:#2E6287; border-bottom-width:1px'><TR bgcolor=#2E6287><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick=searchspe.style.visibility='hidden' width=30>关 闭</TD></TR></TABLE><table border='1' width='150' height='500' bordercolor='#2E6287'><tr><td>广告内容</td></tr></table></DIV>";document.write(specialcode);lastScrollY=0;function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat0()",1);</script>
复制代码


右栏浮动广告
  1. <script language=javascript>var specialcode="<DIV id=searchspe style='Z-INDEX: 100; left: 1px; POSITION: absolute; TOP: 50px;'><TABLE cellSpacing=0 cellPadding=0 width=360 style='border-left:1px solid #333333;border-top:1px solid #333333;border-right:1px solid #333333;font-size:12px;color:#ffffff'><TR bgcolor=#2E6287><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick=searchspe.style.visibility='hidden' width=30>关 闭</TD></TR></TABLE><table border='1' width='150' id='table1' bordercolor='#2E6287' height='500'><tr><td>广告内容</td></tr></table></DIV>";document.write(specialcode);lastScrollY=0;function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat0()",1);</script>
复制代码


左栏固定广告
  1. <DIV id=searchspe style='Z-INDEX: 100; left: 1px; POSITION: absolute; TOP: 50px;'><TABLE cellSpacing=0 cellPadding=0 width=360 style='border-left:1px solid #333333;border-top:1px solid #333333;border-right:1px solid #333333;font-size:12px;color:#ffffff'><TR bgcolor=#2E6287><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick=searchspe.style.visibility='hidden' width=30>关 闭</TD></TR></TABLE>广告内容</DIV>

复制代码


右栏固定广告
  1. <DIV id=searchspe style='Z-INDEX: 100; right: 1px; POSITION: absolute; TOP: 50px;'><TABLE cellSpacing=0 cellPadding=0 width=360 style='border-left:1px solid #333333;border-top:1px solid #333333;border-right:1px solid #333333;font-size:12px;color:#ffffff'><TR bgcolor=#2E6287><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick=searchspe.style.visibility='hidden' width=30>关 闭</TD></TR></TABLE>广告内容</DIV>
复制代码


漂浮广告代码
  1. <div id="img" style="position:absolute;; width: 200; height: 151">广告内容</div>
  2. <script LANGUAGE="JavaScript">
  3. var xPos = 20;
  4. var yPos = 10;
  5. img.style.left= xPos;
  6. img.style.top = yPos;
  7. var step = 1;
  8. var delay = 30;
  9. var width,height,Hoffset,Woffset;
  10. var y = 1;
  11. var x = 1;
  12. var interval;
  13. img.visibility = "visible";

  14. function changePos()
  15. {
  16. width = document.body.clientWidth;
  17. height = document.body.clientHeight;
  18. Hoffset = img.offsetHeight;
  19. Woffset = img.offsetWidth;
  20. if (y)
  21. {
  22. yPos = yPos + step;
  23. }
  24. else
  25. {
  26. yPos = yPos - step;
  27. }
  28. if (yPos < 0)
  29. {
  30. y = 1;
  31. yPos = 0;
  32. }
  33. if (yPos >= (height - Hoffset))
  34. {
  35. y = 0;
  36. yPos = (height - Hoffset);
  37. }
  38. if (x)
  39. {
  40. xPos = xPos + step;
  41. }
  42. else
  43. {
  44. xPos = xPos - step;
  45. }
  46. if (xPos < 0)
  47. {
  48. x = 1;
  49. xPos = 0;
  50. }
  51. if (xPos >= (width - Woffset))
  52. {
  53. x = 0;
  54. xPos = (width - Woffset);
  55. }
  56. img.style.left = xPos + document.body.scrollLeft;
  57. img.style.top = yPos + document.body.scrollTop;
  58. }

  59. function start()
  60. {
  61. interval = setInterval('changePos()', delay);
  62. }

  63. function pause_resume()
  64. {
  65. clearInterval(interval);
  66. }
  67. start();
  68. </script>
复制代码


固定对联
  1. <DIV id=searchspe style='Z-INDEX: 100; right: 5px; POSITION: absolute; TOP: 50px;'><TABLE cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'><TR bgcolor=#C54A00><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick=searchspe.style.visibility='hidden' width=30>关 闭</TD></TR></TABLE>
  2. 广告内容</DIV><DIV id=searchspe2 style='Z-INDEX: 100; left: 5px; POSITION: absolute; TOP: 50px;'><TABLE cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'><TR bgcolor=#12BDFF><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick=searchspe2.style.visibility='hidden' width=30>关 闭</TD></TR></TABLE>
  3. 广告内容</DIV>
复制代码


随动对联
  1. <script language=javascript>function close163news(){searchspe.style.visibility='hidden';searchspe2.style.visibility='hidden';} var specialcode="<DIV id=searchspe style='Z-INDEX: 100; right: 1px; POSITION: absolute; TOP: 30px;'><TABLE cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'><TR bgcolor=#C54A00><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick='close163news()' width=30>关 闭</TD></TR></TABLE>广告内容</DIV>";document.write(specialcode);lastScrollX=0;function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollX);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollX=lastScrollX+percent;}window.setInterval("heartBeat0()",1);var specialcode2="<DIV id=searchspe2 style='Z-INDEX: 100; left: 1px; POSITION: absolute; TOP: 30px;'><TABLE cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'><TR bgcolor=#12BDFF><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick='close163news()' width=30>关 闭</TD></TR></TABLE>广告内容</DIV>";document.write(specialcode2);lastScrollY=0;function heartBeat1(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe2.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat1()",1);</script>
复制代码
fkeuaii 发表于 2008-5-29 16:10:17 | 显示全部楼层
有几个官方好象都已经集成了的吧,不过还是要感谢了
回复

使用道具 举报

lingbing513 发表于 2008-5-31 00:51:52 | 显示全部楼层
支持下了
回复

使用道具 举报

okooo 发表于 2008-6-1 04:32:07 | 显示全部楼层
收藏,到此一游
回复

使用道具 举报

119847 发表于 2008-6-1 05:15:22 | 显示全部楼层
:) :) :) :) :) 收藏
回复

使用道具 举报

ltsbbs 发表于 2008-6-1 06:23:22 | 显示全部楼层
收藏,不错。
回复

使用道具 举报

iamgg1225 发表于 2012-9-8 15:32:01 | 显示全部楼层
mark.........
回复

使用道具 举报

vickelyz 发表于 2015-9-16 22:15:40 | 显示全部楼层
收藏了..........谢谢.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-10 20:50 , Processed in 0.032351 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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