<a onmouseover="displayStatusMsg();return document.returnValue"
href="javascript:jump2url()"><img
style="FILTER: revealTrans(duration=2,transition=20)" height=70
src="index_files/js.htm" width=678 border=0 name=bannerADrotator></a>
<script language=JavaScript>
<!-- // BannerAD

var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;


bannerAD[2]="http://www.idyan.com/ads_pic/0801.jpg";
bannerADlink[2]="http://www.idyan.com/n.php?lid=1";
bannerAD[0]="http://www.idyan.com/ads_pic/nbh.jpg";
bannerADlink[0]=".http://www.idyan.com/scenery/scenery.asp?sce_id=856";
bannerAD[1]="http://www.idyan.com/ads_pic/cicheng.jpg";
bannerADlink[1]="http://www.idyan.com/scenery/sce_line.asp?sce_line=20";

 


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

function setTransition(){
if (document.all){
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
bannerADrotator.filters.revealTrans.apply();
}
}

function playTransition(){
if (document.all)
bannerADrotator.filters.revealTrans.play()
}

function nextAd(){
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.bannerADrotator.src=bannerAD[adNum];
playTransition();
theTimer=setTimeout("nextAd()", 8000);
}

function jump2url(){
jumpUrl=bannerADlink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function displayStatusMsg() {
status=bannerADlink[adNum];
document.returnValue = true;
}

//-->
nextAd();
</script>


文章来源:http://www.cnblogs.com/wangdetian168/archive/2008/10/10/1308356.html
posted on 2010-09-30 12:22 sanmao 阅读(178) 评论(0)  编辑  收藏

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


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜