求高手指导!
function ObjectAD() {
this.ADID = 0;
this.ADType = 0;
this.ADName = "";
this.ADFileURL = "";
this.ADWidth = 0;
this.ADHeight = 0;
this.LinkURL = "";
this.LinkTitle = "";
this.OpenType = 0;
this.FlashWmode = true;
this.ADRight = 0;
}
function FlashZoneAD(_id) {
this.ID = _id;
this.ZoneID = 0;
this.ZoneName = "";
this.ZoneWidth = 0;
this.ZoneHeight = 0;
this.TextHeight = 20;
this.DivName = "";
this.Pics = "";
this.Links = "";
this.Texts = "";
this.AddAD = FlashZoneAD_AddAD;
this.Show = FlashZoneAD_Show;
}
function FlashZoneAD_AddAD(_AD) {
this.Pics += this.Pics=="" ? _AD.ADFileURL : "|"+_AD.ADFileURL;
this.Links += this.Links=="" ? _AD.LinkURL : "|"+_AD.LinkURL;
this.Texts += this.Texts=="" ? _AD.ADName : "|"+_AD.ADName;
}
function FlashZoneAD_Show() {
this.DivName = "FlashZoneAD_Div" + this.ZoneID;
if (ADDir == "") ADDir = "AD";
if (navigator.appName == "Netscape") {
document.write("<layer id='" + this.DivName + "' width='" + this.ZoneWidth + "' height='" + this.ZoneHeight + "'>" + AD_Content(this) + "</layer>");
}else{
document.write("<div id='" + this.DivName + "' style='visibility:visible; z-index:1; width:" + this.ZoneWidth + "; height:" + this.ZoneHeight + ";'>" + AD_Content(this) + "</div>");
}
}
function AD_Content(o) {
var str = "";
str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ o.ZoneWidth +'" height="'+ (o.ZoneHeight + o.TextHeight) +'">';
str += '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+ InstallDir + ADDir +'/flash.swf"><param name="quality" value="high">';
str += '<param name="bgcolor" value="#EFEFEF">';
&n