function ObjectAD() { /* Define Variables*/ this.ADID = 0; this.ADType = 0; this.ADName = ""; this.ImgUrl = ""; this.ImgWidth = 0; this.ImgHeight = 0; this.FlashWmode = 0; this.LinkUrl = ""; this.LinkTarget = 0; this.LinkAlt = ""; this.Priority = 0; this.CountView = 0; this.CountClick = 0; this.InstallDir = ""; this.ADDIR = ""; this.OverdueDate = ""; } function BannerZoneAD(_id) { /* Define Constants */ this.adNum = 0; this.adDelay = 10000; /* Define Common Variables*/ this.ID = _id; this.ZoneID = 0; this.ZoneName = ""; this.ZoneWidth = 0; this.ZoneHeight = 0; this.ShowType = 1; this.DivName = ""; this.Div = null; /* Define Unique Variables*/ /* Define Objects */ this.AllAD = new Array(); this.ShowAD = null; /* Define Functions */ this.AddAD = BannerZoneAD_AddAD; this.Show = BannerZoneAD_Show; } function BannerZoneAD_AddAD(_AD) { var date = new Date(); var getdate = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate(); var today = new Date(getdate); var overdueDate = new Date(_AD.OverdueDate); if (today <= overdueDate) { this.AllAD[this.AllAD.length] = _AD; } } function BannerZoneAD_Show() { var swf_width = this.ZoneWidth; var swf_height = this.ZoneHeight; var swf_path = "/images/"; var config = '0xFFFFFF|0x2|0099FF|15|0xFFFFFF|0x0099FF|0x000000|4|3|1|_blank'; var files = ''; var links = ''; var texts = ''; for (var ADID in this.AllAD) { if (ADID < this.AllAD.length - 1) { files += this.AllAD[ADID].ImgUrl + "|"; links += this.AllAD[ADID].LinkUrl + "|"; texts += "|"; } else { files += this.AllAD[ADID].ImgUrl; links += this.AllAD[ADID].LinkUrl; } } document.write(''); document.write(''); document.write(''); document.write(' '); document.write(''); document.write(''); document.write(''); document.write(''); } var ZoneAD_1 = new BannerZoneAD("ZoneAD_1"); ZoneAD_1.ZoneID = 1; ZoneAD_1.ZoneWidth = 1000; ZoneAD_1.ZoneHeight = 240; ZoneAD_1.ShowType = 3; var objAD = new ObjectAD(); objAD.ADID = 1; objAD.ADType = 1; objAD.ADName = "01"; objAD.ImgUrl = "/sphoto/2011123321.jpg"; objAD.InstallDir = "/"; objAD.ImgWidth = 1000; objAD.ImgHeight = 187; objAD.FlashWmode = 0; objAD.ADIntro = "01"; objAD.Priority = 8; objAD.CountView = 0; objAD.CountClick = 0; objAD.ADDIR = "ADs"; objAD.OverdueDate = "2090/02/11"; ZoneAD_1.AddAD(objAD); var objAD = new ObjectAD(); objAD.ADID = 2; objAD.ADType = 1; objAD.ADName = "02"; objAD.ImgUrl = "/sphoto/20111130321.jpg"; objAD.InstallDir = "/"; objAD.ImgWidth = 1000; objAD.ImgHeight = 187; objAD.FlashWmode = 0; objAD.ADIntro = "02"; objAD.Priority = 8; objAD.CountView = 0; objAD.CountClick = 0; objAD.ADDIR = "ADs"; objAD.OverdueDate = "2090/02/11"; ZoneAD_1.AddAD(objAD); var objAD = new ObjectAD(); objAD.ADID = 3; objAD.ADType = 1; objAD.ADName = "03"; objAD.ImgUrl = "/sphoto/2011123281.jpg"; objAD.InstallDir = "/"; objAD.ImgWidth = 1000; objAD.ImgHeight = 187; objAD.FlashWmode = 0; objAD.ADIntro = "03"; objAD.Priority = 8; objAD.CountView = 0; objAD.CountClick = 0; objAD.ADDIR = "ADs"; objAD.OverdueDate = "2090/02/11"; ZoneAD_1.AddAD(objAD); var objAD = new ObjectAD(); objAD.ADID = 4; objAD.ADType = 1; objAD.ADName = "04"; objAD.ImgUrl = "/sphoto/2015514111.jpg"; objAD.InstallDir = "/"; objAD.ImgWidth = 1000; objAD.ImgHeight = 187; objAD.FlashWmode = 0; objAD.ADIntro = "04"; objAD.Priority = 8; objAD.CountView = 0; objAD.CountClick = 0; objAD.ADDIR = "ADs"; objAD.OverdueDate = "2090/02/11"; ZoneAD_1.AddAD(objAD); ZoneAD_1.Show();