//Copyright yaosansi@n169.com


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


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


switch (type)
{
        
case "img":
            
if(url=="")
            
{
                innerhtml
="<img src=" + Source + " width=" + width + " height=" + height + "  border=0 alt='" + alt + "' />";
            }

            
else
            
{
                innerhtml
="<a href=" + url + " target=_blank><img src=" + Source + " width=" + width + " height=" + height + "  border=0  alt=" + alt + "/></A>";
            }

            
break;
        
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>";
            
break;
        
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>";
            
break;
        
default:
            innerhtml
="";
}


if(stop=="true"||stop==true)
{
    document.all.ad_top.innerHTML
="";
}

else if(innerhtml!="")
{
    document.all.ad_top.innerHTML
=innerhtml;
}


var k,Today;
function Today()
{
   
var d,s;                                     // 声明变量。
   s="";
   d 
= new Date();                           // 创建 Date 对象。
   s += (d.getMonth() + 1+ "/";            // 获取月份。
   s += d.getDate() + "/";                   // 获取日。
   s += d.getYear();                         // 获取年份。
   alert(s);
   
return(s);                                // 返回日期。
}


//if(Today()=="9/16/2005")
//
{
//
    alert("y");
//
}
posted on 2007-02-12 14:49  mbskys  阅读(215)  评论(0)    收藏  举报