 //Copyright yaosansi@n169.com
//Copyright yaosansi@n169.com

 //--------------不可改动----------------
//--------------不可改动---------------- var type;        //类型 flash,img,html
var type;        //类型 flash,img,html var width;        //广告宽
var width;        //广告宽 var height;        //广告长
var height;        //广告长 var url;        //广告的目标地址
var url;        //广告的目标地址 var Source;        //广告文件的地址
var Source;        //广告文件的地址 var innerhtml;    //广告要显示的内容
var innerhtml;    //广告要显示的内容 var alt;        //当图片无法显示时替换的文字
var alt;        //当图片无法显示时替换的文字 var title;        //鼠标放在图片上面时显示的文字
var title;        //鼠标放在图片上面时显示的文字 var stop;        //是否停止显示广告,值为"true"显示,其它不显示
var stop;        //是否停止显示广告,值为"true"显示,其它不显示 //--------------------------------------
//--------------------------------------

 //######################################
//###################################### //设定类型及宽高.源地址,及目标地址
//设定类型及宽高.源地址,及目标地址 type="img";  //img,html,flash
type="img";  //img,html,flash width="760px";
width="760px"; height="100px";
height="100px"; url="";
url=""; Source="http://adbanner.n169.com/images/Midautumn.gif";
Source="http://adbanner.n169.com/images/Midautumn.gif"; alt="";
alt=""; title="";
title=""; stop="false";
stop="false"; //#######################################
//#######################################

 switch (type)
switch (type) {
{ case "img":
        case "img": if(url=="")
            if(url=="") {
            { innerhtml="<img src=" + Source + " width=" + width + " height=" + height + "  border=0 alt='" + alt + "' />";
                innerhtml="<img src=" + Source + " width=" + width + " height=" + height + "  border=0 alt='" + alt + "' />"; }
            } else
            else {
            { innerhtml="<a href=" + url + " target=_blank><img src=" + Source + " width=" + width + " height=" + height + "  border=0  alt=" + alt + "/></A>";
                innerhtml="<a href=" + url + " target=_blank><img src=" + Source + " width=" + width + " height=" + height + "  border=0  alt=" + alt + "/></A>"; }
            } break;
            break; case "html":
        case "html": innerhtml="<iframe width=" + width + " height=" + height + " marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor=#000000 src="+ Source + "></iframe>";
            innerhtml="<iframe width=" + width + " height=" + height + " marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor=#000000 src="+ Source + "></iframe>"; break;
            break; case "flash":
        case "flash": innerhtml="<embed src="+Source+" wmode=opaque quality=high width=" + width + " height=" + height + " type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></embed>";
            innerhtml="<embed src="+Source+" wmode=opaque quality=high width=" + width + " height=" + height + " type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></embed>"; break;
            break; default:
        default: innerhtml="";
            innerhtml=""; }
}
 if(stop=="true"||stop==true)
if(stop=="true"||stop==true) {
{ document.all.ad_top.innerHTML="";
    document.all.ad_top.innerHTML=""; }
} else if(innerhtml!="")
else if(innerhtml!="") {
{ document.all.ad_top.innerHTML=innerhtml;
    document.all.ad_top.innerHTML=innerhtml; }
}
 var k,Today;
var k,Today; function Today()
function Today() {
{ var d,s;                                     // 声明变量。
   var d,s;                                     // 声明变量。 s="";
   s=""; d = new Date();                           // 创建 Date 对象。
   d = new Date();                           // 创建 Date 对象。 s += (d.getMonth() + 1) + "/";            // 获取月份。
   s += (d.getMonth() + 1) + "/";            // 获取月份。 s += d.getDate() + "/";                   // 获取日。
   s += d.getDate() + "/";                   // 获取日。 s += d.getYear();                         // 获取年份。
   s += d.getYear();                         // 获取年份。 alert(s);
   alert(s); return(s);                                // 返回日期。
   return(s);                                // 返回日期。 }
}
 //if(Today()=="9/16/2005")
//if(Today()=="9/16/2005") //{
//{ //    alert("y");
//    alert("y"); //}
//}
 
                    
                     
                    
                 
                    
                 
 
        

 
             
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号