我的Blog我做主^_^

走向一条通往JAVA的不归路...

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  64 随笔 :: 68 文章 :: 77 评论 :: 0 Trackbacks

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="www.iered.com">
</HEAD>
<BODY style="margin:0px;">
<script language="javascript">
//可关闭对联广告代码一:分辩率小于等于800*600时不显示广告!
<!--
var AdPlay=true;//true:显示广告;false:表示不显示广告
var LeftFlash=false;//左侧 false:表示广告为图片;true:表示广告为FLASH动画
var LeftAdWidth="100";//左侧广告宽度
var LeftAdHeight="300";//左侧广告高度
var LeftAdUrl="http://www.iered.com";//左侧广告连接地址
var LeftAdImg="/js/0009_100_300.gif";//左侧图片或FLASH动画地址
var RightFlash=false;//右侧 false:表示广告为图片;true:表示广告为FLASH动画
var RightAdWidth="100";//右侧广告宽度
var RightAdHeight="300";//右侧广告高度
var RightAdUrl="http://www.iered.com";//右侧广告连接地址
var RightAdImg="/js/0009_100_300.gif";//右侧图片或FLASH动画地址
if (screen.width<=800){AdPlay=false;}//分辩率小于等于800*600时不显示广告!
var duilian;
function HiddenPop()
{if (divMenu_Left.style.visibility=="visible"){divMenu_Left.style.visibility='hidden';}
if (divMenu_Right.style.visibility=="visible"){divMenu_Right.style.visibility='hidden';}
}
//左侧
duilian="<div id='divMenu_Left'  style='LEFT:1px;POSITION: absolute;TOP: 320px; visibility: visible' >";
if (LeftFlash){duilian+="<embed src='"+LeftAdImg+"' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' WIDTH="+LeftAdWidth+" height="+LeftAdHeight+"></embed>";}
else{duilian+="<table width="+LeftAdWidth+" border=0 cellspacing=0 cellpadding=2><tr><td align='center'>";
duilian+="<a href='"+LeftAdUrl+"' target=_blank><img src='"+LeftAdImg+"' width="+LeftAdWidth+" height="+LeftAdHeight+" border=0></a><br><br><a href=\"javascript:HiddenPop();\"><img src='/js/Close_AD.gif' width="+LeftAdWidth+" height=35 border=0></a>";
duilian+="</td></tr></table>";}
duilian+="</div>";
if (AdPlay){document.write(duilian);}
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";
function getRef(id) {
 if (isDOM) return document.getElementById(id);
 if (isIE4) return document.all[id];
 if (isNS4) return document.layers[id];
}
function moveRightEdge() {
 var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

 if (isNS4) {
  yMenuFrom   = divMenu_Left.top;
  yMenuTo     = windows.pageYOffset + 170;   // 高度
 } else if (isDOM) {
  yMenuFrom   = parseInt (divMenu_Left.style.top, 10);
  yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 40; //高度
 }
 timeoutNextCheck = 500;

 if (yMenuFrom != yMenuTo) {
  yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
  if (yMenuTo < yMenuFrom)
   yOffset = -yOffset;
  if (isNS4)
   divMenu_Left.top += yOffset;
  else if (isDOM)
   divMenu_Left.style.top = parseInt (divMenu_Left.style.top, 10) + yOffset;
   timeoutNextCheck = 10;
 }
 setTimeout ("moveRightEdge()", timeoutNextCheck);
}

if (isNS4) {
 var divMenu_Left = document["divMenu_Left"];
 divMenu_Left.top = top.pageYOffset + 0;
 divMenu_Left.visibility = "visible";
 moveRightEdge();
} else if (isDOM) {
 var divMenu_Left = getRef('divMenu_Left');
 divMenu_Left.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 0;
 divMenu_Left.style.visibility = "visible";
 moveRightEdge();
}

//右侧
var duilian_right;
duilian_right="<div id='divMenu_Right'  style='RIGHT:1px;POSITION: absolute;TOP: 320px; visibility: visible' >";
if (RightFlash){duilian_right+="<embed src='"+RightAdImg+"' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' WIDTH="+RightAdWidth+" height="+RightAdHeight+"></embed>";}
else{duilian_right+="<table width="+RightAdWidth+" border=0 cellspacing=0 cellpadding=2><tr><td align='center'>";
duilian_right+="<a href='"+RightAdUrl+"' target=_blank><img src='"+RightAdImg+"' width="+RightAdWidth+" height="+RightAdHeight+" border=0></a><br><br><a href=\"javascript:HiddenPop();\"><img src='/js/Close_AD.gif' width="+RightAdWidth+" height=35 border=0></a>";
duilian_right+="</td></tr></table>";}
duilian_right+="</div>";
if (AdPlay){document.write(duilian_right);}
function getRef_r(id) {
 if (isDOM) return document.getElementById(id);
 if (isIE4) return document.all[id];
 if (isNS4) return document.layers[id];
}
function moveRightEdge_r() {
 var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

 if (isNS4) {
  yMenuFrom   = divMenu_Right.top;
  yMenuTo     = windows.pageYOffset + 170;   // 高度
 } else if (isDOM) {
  yMenuFrom   = parseInt (divMenu_Right.style.top, 10);
  yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 40; //高度
 }
 timeoutNextCheck = 500;

 if (yMenuFrom != yMenuTo) {
  yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
  if (yMenuTo < yMenuFrom)
   yOffset = -yOffset;
  if (isNS4)
   divMenu_Right.top += yOffset;
  else if (isDOM)
   divMenu_Right.style.top = parseInt (divMenu_Right.style.top, 10) + yOffset;
   timeoutNextCheck = 10;
 }
 setTimeout ("moveRightEdge_r()", timeoutNextCheck);
}

if (isNS4) {
 var divMenu_Right = document["divMenu_Right"];
 divMenu_Right.top = top.pageYOffset + 0;
 divMenu_Right.visibility = "visible";
 moveRightEdge_r();
} else if (isDOM) {
 var divMenu_Right = getRef_r('divMenu_Right');
 divMenu_Right.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 0;
 divMenu_Right.style.visibility = "visible";
 moveRightEdge_r();
}
//-->
</script>

 

<script language="javascript">
//可关闭对联广告代码二:分辩率小于等于800*600时不显示广告!
<!--
var delta=0.015;
var collection;
var closeB=false;
function floaters() {
  this.items = [];
  this.addItem = function(id,x,y,content)
      {
     document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
   
     var newItem    = {};
     newItem.object   = document.getElementById(id);
     newItem.x    = x;
     newItem.y    = y;

     this.items[this.items.length]  = newItem;
      }
  this.play = function()
      {
     collection    = this.items
     setInterval('play()',30);
      }
  }
  function play()
  {
   if(screen.width<=800 || closeB)//分辩率小于等于800*600时不显示广告!
   {
    for(var i=0;i<collection.length;i++)
    {
     collection[i].object.style.display = 'none';
    }
    return;
   }
   for(var i=0;i<collection.length;i++)
   {
    var followObj  = collection[i].object;
    var followObj_x  = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
    var followObj_y  = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

    if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
     var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
     dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
     followObj.style.left=followObj.offsetLeft+dx;
     }

    if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
     var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
     dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
     followObj.style.top=followObj.offsetTop+dy;
     }
    followObj.style.display = '';
   }
  }
  function closeBanner()
  {
   closeB=true;
   return;
  }
var theFloaters  = new floaters();
//左则广告内容
theFloaters.addItem('followDiv1','document.body.clientWidth-120',0,'<table border=0 width=120 cellspacing=0 cellpadding=0 bgcolor=#efefef><tr><td valign=middle height=600 width=120><iframe width=120 height=600 src=/js/gooooogle.html border=0 frameborder=0 scrolling=no></iframe></td></tr><tr><td align=left height=18 width=120><img width=12 height=12 border=0 src=/js/close.gif onClick="closeBanner();"><font color=#003366 size=2>精彩内容推荐</font></td></tr></table>');
//右则广告内容
theFloaters.addItem('followDiv2',0,0,'<table border=0 width=120 cellspacing=0 cellpadding=0 bgcolor=#efefef><tr><td valign=middle height=600 width=120><iframe width=120 height=600 src=/js/heima.html border=0 frameborder=0 scrolling=no></iframe></td></tr><tr><td align=right height=18 width=120><font color=#003366 size=2>精彩内容推荐</font><img width=12 height=12 border=0 src=/js/close.gif onClick="closeBanner();"></td></tr></table>');
theFloaters.play();
//-->
</script>


<TABLE><TR><TD height="1100">&nbsp;</TD></TR></TABLE>
</BODY></HTML>



posted on 2007-01-31 17:25 java_蝈蝈 阅读(2099) 评论(0)  编辑  收藏 所属分类: JAVASCRIPT

只有注册用户登录后才能发表评论。


网站导航: