function PCMSAD(PID) { this.ID = PID; this.PosID = 0; this.ADID = 0; this.ADType = ""; this.ADName = ""; this.ADContent = ""; this.PaddingLeft = 0; this.PaddingTop = 0; this.Width = 0; this.Height = 0; this.IsHitCount = "Y"; this.Scroll = "N"; this.UploadFilePath = ""; this.URL = ""; this.SiteID = 0; this.ShowAD = showADContent; this.Start = doStart; this.Stat = statAD; } function statAD() { var new_element = document.createElement("script"); new_element.type = "text/javascript"; new_element.src="http://www.sd-golddc.com/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&spaceid="+this.ADID+"&id="+this.PosID; document.body.appendChild(new_element); } function showADContent() { var content = this.ADContent; var str = ""; var align = ""; var x = ""; var y = ""; var AD = eval('('+content+')'); if (this.ADType == "images") { for(var i=0;i"; str += ""; str += ""; str += ""; str += "
关闭
"; str += ""; document.write(str); } }else if(this.ADType == "flash"){ for(var i=0;i"; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += "
关闭
"; str += ""; document.write(str); } } } var lastScrollY=0; function heartBeat(Scroll){ var diffY; if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop; else if (document.body) diffY = document.body.scrollTop; else {/*Netscape stuff*/} percent=.1*(diffY-lastScrollY); if (percent>0) percent = Math.ceil(percent); else percent = Math.floor(percent); document.getElementById("PCMSAD_"+Scroll+"_0").style.top=parseInt(document.getElementById ("PCMSAD_"+Scroll+"_0").style.top)+percent+"px"; document.getElementById("PCMSAD_"+Scroll+"_1").style.top=parseInt(document.getElementById ("PCMSAD_"+Scroll+"_1").style.top)+percent+"px"; lastScrollY=lastScrollY+percent; } function doStart() { if (cmsAD_13.Scroll=='Y') { setInterval("heartBeat(\""+cmsAD_13.PosID+"\")",10); } } var cmsAD_13 = new PCMSAD('cmsAD_13'); cmsAD_13.PosID = 13; cmsAD_13.ADID = 23; cmsAD_13.ADType = "images"; cmsAD_13.ADName = "经典户型"; cmsAD_13.ADContent = "{'Images':[ {'imgADLinkUrl':'http%3A%2F%2Fwww.sd-golddc.com%2Findex.php%3Fm%3Dcontent%26c%3Dindex%26a%3Dlists%26catid%3D119%26pc_hash%3DYUTals','imgADAlt':'','ImgPath':'/uploadfile/2016/0307/20160307023927901.jpg'}, {'imgADLinkUrl':'http%3A%2F%2Fwww.sd-golddc.com%2Findex.php%3Fm%3Dcontent%26c%3Dindex%26a%3Dlists%26catid%3D119%26pc_hash%3DYUTals','imgADAlt':'','ImgPath':'/uploadfile/2016/0307/20160307023927901.jpg'},],'imgADLinkTarget':'New','Count':'2','showAlt':'Y'}"; cmsAD_13.URL = "http://www.sd-golddc.com/index.php?m=poster&c=index"; cmsAD_13.SiteID = 1; cmsAD_13.PaddingLeft = 0; cmsAD_13.PaddingTop = 0; cmsAD_13.Scroll = 'Y'; cmsAD_13.Width = 120; cmsAD_13.Height = 260; cmsAD_13.UploadFilePath = ""; cmsAD_13.ShowAD(); var isIE=!!window.ActiveXObject; if (isIE){ if (document.readyState=="complete"){ cmsAD_13.Stat(); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") cmsAD_13.Stat(); } } } else { cmsAD_13.Stat(); } cmsAD_13.Start();