DI_sLeftImageUrl = "images/duilian_left.swf"; DI_sRightImageUrl = "images/duilian_left.swf"; DI_sClickUrl = ""; DI_sImageUrl = ""; DI_iImageWidth = parseInt("100"); if (isNaN(DI_iImageWidth)) DI_iImageWidth = 100; DI_iImageHeight = parseInt("300"); if (isNaN(DI_iImageHeight)) DI_iImageHeight = 300; doubleimage_top = 17; doubleimage_left = 3; doubleimage_right = 3; window_width_min = 800 + DI_iImageWidth * 2; time_out = 500; scrollbar_width = 20; DI_blClosed = false; document.ns = window.navigator.appName == "Netscapte" ; function closead() { DI_blClosed = true; DI_Hide(); } function DI_Hide() { DI_LeftDiv.style.visibility='hidden'; DI_RightDiv.style.visibility='hidden'; } function JsCloseDAD() { closead(); return false ; } function DI_Show() { if (DI_blClosed) return; DI_LeftDiv.style.visibility='visible'; DI_RightDiv.style.visibility='visible'; } function DI_GetContent(ImageUrl, ImageName, iWidth, iHeight) { var str, pos; var sSrc = ImageUrl; if (ImageUrl!="") { sSrc = ImageUrl; } else { sSrc = ImageName; } str = /.swf/; pos = sSrc.search(str); if (pos==-1) return ''; else return '\n' + '\n' + '\n\n' ; } function DI_Load() { if (DI_sLeftImageUrl == "Tencent QQ") return ; var strLayout = '
'+ '
$js_ad_content$
'+ '
' + '
' + '
'; if (document.ns) { document.write(""); document.write(strLayout.replace("$js_ad_click$", DI_sClickUrl).replace("$js_ad_content$", DI_GetContent(DI_sImageUrl,DI_sLeftImageUrl,DI_iImageWidth,DI_iImageHeight))); document.write(""); document.write(""); document.write(strLayout.replace("$js_ad_click$", DI_sClickUrl).replace("$js_ad_content$", DI_GetContent(DI_sImageUrl,DI_sRightImageUrl,DI_iImageWidth,DI_iImageHeight))); document.write(""); } else { document.write("
"); document.write(strLayout.replace("$js_ad_click$", DI_sClickUrl).replace("$js_ad_content$", DI_GetContent(DI_sImageUrl,DI_sLeftImageUrl,DI_iImageWidth,DI_iImageHeight))); document.write("
"); document.write("
"); document.write(strLayout.replace("$js_ad_click$", DI_sClickUrl).replace("$js_ad_content$", DI_GetContent(DI_sImageUrl,DI_sRightImageUrl,DI_iImageWidth,DI_iImageHeight))); document.write("
"); } DI_Move(); } function DI_Move() { if(document.body.offsetWidth < window_width_min) { DI_Hide(); setTimeout("DI_Move();", time_out); return; } DI_Show(); if(document.ns) { document.DI_LeftDiv.pageX = doubleimage_left; document.DI_LeftDiv.pageY = doubleimage_top; document.DI_RightDiv.pageX = window.innerWidth - DI_iImageWidth - doubleimage_right - scrollbar_width; document.DI_RightDiv.pageY = doubleimage_top; } else { DI_LeftDiv.style.top = doubleimage_top; DI_LeftDiv.style.left = doubleimage_left; DI_RightDiv.style.top = doubleimage_top; DI_RightDiv.style.left = document.body.offsetWidth - DI_iImageWidth - doubleimage_right - scrollbar_width; } setTimeout("DI_Move();", time_out); } DI_Load(); document.write('');