有些特效是可以通过“嵌入式框架”来实现的:
<IFRAME name=I1 marginWidth=0 marginHeight=0 src="mb.htm" frameBorder=0 width=775 height=163 scrolling=no framespacing=0></IFRAME>
这样就可以插入一个嵌入式框架,而在框架外,使用脚本语言实现特效:
<html>
<head>
<title>世纪空间</title>
</head>
<body leftMargin="0" topMargin="0" οncοntextmenu="window.event.returnValue=false" οndragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; οnresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<SCRIPT language=Javascript>
var bannerAD=new Array();
var bannerADlink=new Array();
var bannerADtarget=new Array();
var adNum=0;
bannerAD[1]="images/dt.jpg";
bannerADlink[1]="javascript:;";
bannerADtarget[1]="_blank";
bannerAD[2]="images/dt1.jpg";
bannerADlink[2]="javascript:;";
bannerADtarget[2]="vnet";
bannerAD[3]="images/dt2.jpg";
bannerADlink[3]="javascript:;";
bannerADtarget[3]="vnet";
bannerAD[4]="images/dt3.jpg";
bannerADlink[4]="javascript:;";
bannerADtarget[4]="javascript:;";
bannerAD[5]="images/dt4.jpg";
bannerADlink[5]="javascript:;";
bannerADtarget[5]="vnet";
bannerAD[0]="images/dt5.jpg";
bannerADlink[0]="javascript:;";
bannerADtarget[0]="vnet";
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=12;
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()", 3000);
}
function jump2url(){
jumpUrl=bannerADlink[adNum];
jumpTarget=bannerADtarget[adNum];
if (jumpUrl != ''){
if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else window.open(jumpUrl,"","width=778,height=163,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no");
}
}
function displayStatusMsg() {
status=bannerADlink[adNum];
document.returnValue = true;
}
</SCRIPT>
<img style="FILTER:revealTrans(duration=1,transition=3)" src="images/dt.jpg" width="775" height="163" name=bannerADrotator>
<script language=JavaScript>nextAd()</script>
</body>
</html>