找回密码
 注册
【阿里云】2核2G云新老同享 99元/年,续费同价华为云精选云产品特惠做网站就用糖果主机Jtti,新加坡服务器,美国服务器,香港服务器
查看: 549|回复: 5

谁给我个浮动广告代码?~

[复制链接]
发表于 2005 年 8 月 2 日 22:31:38 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
  RT
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2005 年 8 月 2 日 22:32:49 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价

干吗?
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2005 年 8 月 2 日 22:33:24 | 显示全部楼层
连GGAD!``
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 8 月 2 日 23:15:12 | 显示全部楼层
我发过一个能漂出网页的
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 8 月 2 日 23:19:23 | 显示全部楼层
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 8 月 2 日 23:44:00 | 显示全部楼层
  1. var Prizepic="图片地址f";
  2. var Prizealt="广告标题";
  3. var Prizespeed=200;
  4. var Prizelight=0;
  5. var Prizestop=0;
  6. var Prizenum=0;
  7. var PrizebrOK=false;
  8. var PrizemPrizeie=false;
  9. var Prizeaver=parseInt(navigator.appVersion.substring(0,1));
  10. var Prizeaname=navigator.appName;
  11. var Prizevmin=2;
  12. var Prizevmax=5;
  13. var Prizevr=2;
  14. var Prizetimer1;
  15. var Prize11;
  16. var Prizens = (document.layers) ? 1 : 0;
  17. var Prizeie = (document.all) ? 1 : 0;
  18. var PrizebFade=false;
  19. function PrizebcheckPrizebrOK(){
  20. if(Prizeaname.indexOf("Internet Explorer")!=-1){
  21.   if(Prizeaver>=4) PrizebrOK=navigator.javaEnabled();
  22.   PrizemPrizeie=true;
  23. }
  24. if(Prizeaname.indexOf("Netscape")!=-1){
  25.   if(Prizeaver>=4) PrizebrOK=navigator.javaEnabled();
  26. }
  27. }
  28. function PrizeChip(PrizeChipname,width,height){
  29. this.named=PrizeChipname;
  30. this.vx=Prizevmin+Prizevmax*Math.random();
  31. this.vy=Prizevmin+Prizevmax*Math.random();
  32. this.w=width+100;
  33. this.h=height;
  34. this.xx=250;
  35. this.yy=250;
  36. this.Prizetimer1=null;
  37. }
  38. function movePrizeChip(PrizeChipname){
  39. if (Prizestop!=1){
  40. if(PrizebrOK){
  41. eval("PrizeChip="+PrizeChipname);
  42. if(!PrizemPrizeie){
  43.   pageX=window.pageXOffset;
  44.   pageW=window.innerWidth;
  45.   pageY=window.pageYOffset;
  46.   pageH=window.innerHeight;
  47. }
  48. else{
  49.   pageX=window.document.body.scrollLeft;
  50.   pageW=window.document.body.offsetWidth-8;
  51.   pageY=window.document.body.scrollTop;
  52.   pageH=window.document.body.offsetHeight;
  53. }
  54. PrizeChip.xx=PrizeChip.xx+PrizeChip.vx;
  55. PrizeChip.yy=PrizeChip.yy+PrizeChip.vy;
  56. PrizeChip.vx+=Prizevr*(Math.random()-0.5);
  57. PrizeChip.vy+=Prizevr*(Math.random()-0.5);
  58. if(PrizeChip.vx>(Prizevmax+Prizevmin))  PrizeChip.vx=(Prizevmax+Prizevmin)*2-PrizeChip.vx;
  59. if(PrizeChip.vx<(-Prizevmax-Prizevmin)) PrizeChip.vx=(-Prizevmax-Prizevmin)*2-PrizeChip.vx;
  60. if(PrizeChip.vy>(Prizevmax+Prizevmin))  PrizeChip.vy=(Prizevmax+Prizevmin)*2-PrizeChip.vy;
  61. if(PrizeChip.vy<(-Prizevmax-Prizevmin)) PrizeChip.vy=(-Prizevmax-Prizevmin)*2-PrizeChip.vy;
  62. if(PrizeChip.xx<=pageX){
  63.   PrizeChip.xx=pageX;
  64.   PrizeChip.vx=Prizevmin+Prizevmax*Math.random();
  65. }
  66. if(PrizeChip.xx>=pageX+pageW-PrizeChip.w){
  67.   PrizeChip.xx=pageX+pageW-PrizeChip.w;
  68.   PrizeChip.vx=-Prizevmin-Prizevmax*Math.random();
  69. }
  70. if(PrizeChip.yy<=pageY){
  71.   PrizeChip.yy=pageY;
  72.   PrizeChip.vy=Prizevmin+Prizevmax*Math.random();
  73. }
  74. if(PrizeChip.yy>=pageY+pageH-PrizeChip.h){
  75.   PrizeChip.yy=pageY+pageH-PrizeChip.h;
  76.   PrizeChip.vy=-Prizevmin-Prizevmax*Math.random();
  77. }
  78. if(!PrizemPrizeie){
  79.   eval("document."+PrizeChip.named+".top ="+PrizeChip.yy);
  80.   eval("document."+PrizeChip.named+".left="+PrizeChip.xx);
  81. }
  82. else{
  83.   eval("document.all."+PrizeChip.named+".style.pixelLeft="+PrizeChip.xx);
  84.   eval("document.all."+PrizeChip.named+".style.pixelTop ="+PrizeChip.yy);
  85. }
  86. PrizeChip.Prizetimer1=setTimeout("movePrizeChip(\'"+PrizeChip.named+"\')",Prizespeed);
  87. }
  88. }
  89. else {PrizeChip.Prizetimer1=setTimeout("movePrizeChip(\'"+PrizeChip.named+"\')",Prizespeed);}
  90. if (Prizeie){
  91. if (Prizelight==1){
  92.   var nOpacity=oImg.filters.alpha.opacity;
  93.   if (nOpacity>=100) PrizebFade=true;
  94.   if (nOpacity<=0) PrizebFade=false;
  95.   if (PrizebFade) oImg.filters.alpha.opacity--;
  96.   if (!PrizebFade) oImg.filters.alpha.opacity++;
  97. }
  98. }
  99. }
  100. function Prizestopme(PrizeChipname){
  101. if(PrizebrOK){
  102.   eval("PrizeChip="+PrizeChipname);
  103.   if(PrizeChip.Prizetimer1!=null){
  104.   clearTimeout(PrizeChip.Prizetimer1)
  105.   }
  106. }
  107. }
  108. function Prize1(){
  109. if (Prizenum==0){
  110. PrizebcheckPrizebrOK();
  111. Prize11=new PrizeChip("Prize11",100,80);
  112. if(PrizebrOK) {
  113.   movePrizeChip("Prize11");
  114. }
  115. }
  116. Prizenum++;
  117. }
  118. if (Prizeie){
  119. document.write("<div ID=\'Prize11\' STYLE=\'position:absolute;left: 250px; top: 250px;\'>");
  120. document.write("<a HREF=\'mdj.asp\' target=\'_blank\'>");
  121. if (Prizelight==1){
  122. document.write("<dd><img SRC=\'" + Prizepic + "\' onload=\'Prize1()\' ID=\'oImg\' border=\'0\' Prizealt=\'" + Prizealt + "\' style=\'position:absolute;left:200px;top:200px;filter:alpha(opacity=50);\' onMouseOver=\'Prizestop=1;\' onMouseOut=\'Prizestop=0;\'></a></dd>");
  123. }
  124. else if (Prizelight==0){
  125. document.write("<dd><img SRC=\'" + Prizepic + "\' onload=\'Prize1()\' border=\'0\' Prizealt=\'" + Prizealt + "\' onMouseOver=\'Prizestop=1;\' onMouseOut=\'Prizestop=0;\'></a></dd>");
  126. }
  127. document.write("</div>");
  128. }
  129. else if (Prizens){
  130. document.write("<layer name=\'Prize11\' visibility=\\"show\\" onMouseOver=\'Prizestop=1;\' onMouseOut=\'Prizestop=0;\'  onload=\'Prize1()\' >");
  131. document.write("<a HREF=\'链接地址\' target=\'_blank\'>");
  132. document.write("<dd><img SRC=\'" + Prizepic + "\' border=\'0\' Prizealt=\'" + Prizealt + "\'></a></dd>");
  133. document.write("</layer>");
  134. }
复制代码
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 11 月 19 日 23:41 , Processed in 0.019506 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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