t-by的net blog

学习net的资料库

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

   
 <!--
var cpAD=new Array();
var cpADlink=new Array();
var cpADmsg=new Array();
var adNum=5;
var coll=0;

cpAD[0]="images/banners/glds1010.gif";
cpADlink[0]="http://jingguan.china-pub.com/subject/zhuanti/glds/index.htm";
cpADmsg[0]="1";

cpAD[1]="http://www.china-pub.com/images/banners/jianzhu.gif";
cpADlink[1]="http://www.china-pub.com/jz/";
cpADmsg[1]="2";

cpAD[2]="images/banners/uml_02.gif";
cpADlink[2]="http://www.china-pub.com/computers/common/info.asp?id=25385";
cpADmsg[2]="3";

cpAD[3]="http://www.china-pub.com/images/banners/bcgf1013.gif";
cpADlink[3]="http://www.china-pub.com/computers/common/info.asp?id=26320";
cpADmsg[3]="4";

cpAD[4]="http://www.china-pub.com/images/banners/c++primer.gif";
cpADlink[4]="http://www.china-pub.com/computers/common/info.asp?id=26558";
cpADmsg[4]="5";

 

 

var preloadedimages=new Array();
for (i=1;i<cpAD.length;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=cpAD[i];
}

function jump2url()
{
jumpUrl=cpADlink[adNum];
jumpTarget='_blank';
if (jumpUrl != '')
{
 if (jumpTarget != '')
  window.open(jumpUrl,jumpTarget);
 else location.href=jumpUrl;
 }
}
function changeimg(n)
{
 adNum=n;
 window.clearInterval(theTimer);
 adNum=adNum-1;
 nextAd();
}
function nextAd(){
coll++;

if(adNum<cpAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.cpADrush.src=cpAD[adNum];
playTransition();
displayStatusMsg();
theTimer=setTimeout("nextAd()", 7000);
}

function setTransition(){
if (document.all){
cpADrush.filters.revealTrans.Transition=23;
cpADrush.filters.revealTrans.apply();
}

}
function playTransition(){
if (document.all)
cpADrush.filters.revealTrans.play()
}
function displayStatusMsg() {
status=cpADmsg[adNum];
document.returnValue = true;
}
//结束
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->

 

<!--
Dim mySt(4)
mySt(0)=mySt(1)=mySt(2)=mySt(3)=mySt(4)=0

Sub myd1_onmouseout
  myd1.style.color="white"
 myd1.background="http://www.china-pub.com/image/a.gif"
End Sub

Sub myd1_onmouseover
 myd1.style.color="black"
 myd1.background="http://www.china-pub.com/image/a+.gif"
 CALL changeimg(0)
End Sub

Sub myd2_onmouseout
  myd2.style.color="white"
 myd2.background="http://www.china-pub.com/image/b.gif"
End Sub

Sub myd2_onmouseover
 myd2.style.color="black"
 myd2.background="http://www.china-pub.com/image/b+.gif"
 CALL changeimg(1)
End Sub

Sub myd3_onmouseout
  myd3.style.color="white"
 myd3.background="http://www.china-pub.com/image/c.gif"
End Sub

Sub myd3_onmouseover
 myd3.style.color="black"
 myd3.background="http://www.china-pub.com/image/c+.gif"
 CALL changeimg(2)
End Sub

Sub myd4_onmouseout
  myd4.style.color="white"
 myd4.background="http://www.china-pub.com/image/d.gif"
End Sub

Sub myd4_onmouseover
 myd4.style.color="black"
 myd4.background="http://www.china-pub.com/image/d+.gif"
 CALL changeimg(3)
End Sub

Sub myd5_onmouseout
  myd5.style.color="white"
 myd5.background="http://www.china-pub.com/image/e.gif"
End Sub

Sub myd5_onmouseover
 myd5.style.color="black"
 myd5.background="http://www.china-pub.com/image/e+.gif"
 CALL changeimg(4)
End Sub
-->

 

posted on 2005-12-21 00:00  钛网络  阅读(316)  评论(0)    收藏  举报