//调用方法
//<script language="JavaScript" src="http://www.zj.gov.cn/javascript/scwc20080519.js" type="text/javascript"></script>
//修改http://www.zj.gov.cn/zjimages/images/ad20080519-21.jpg为自已的图片
with(document) {
writeln('<DIV ID="ad4u73744_tag" STYLE="display:none;">');
writeln('<table width=780  border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>');
writeln('<tr>');
writeln('<td align=center><img src=http://www.hnwjm.gov.cn/l.jpg border=0></td>');
writeln('</tr>');
writeln('</table>');
writeln('</DIV>');
writeln('<SCRIPT LANGUAGE=JavaScript>');
writeln('var a4NS = ((navigator.appName == \"Netscape\" && (parseInt(navigator.appVersion) >= 4)) && ((document.layers) ? (true) : (false)));');
writeln('var a4IE = ((navigator.appName == \"Microsoft Internet Explorer\") && ((document.all) ? (true) : (false)));');
writeln('function ad4u_pushdownlyr(shwlyrnm, taglyrnm, position, showupdelay, durationtime) {');
writeln(' if( !a4IE ) return;');
writeln(' var alyr = document.createElement(\"<DIV ID=\'\" + shwlyrnm + \"\' STYLE=\'display:none;\'></DIV>\");');
writeln(' if( position == 1 ) document.body.appendChild(alyr);');
writeln(' else document.body.insertBefore(alyr,document.body.childNodes(0));');
writeln(' alyr.innerHTML = document.getElementById(taglyrnm).innerHTML;');
writeln(' fncnm = \"document.getElementById(\'\" + shwlyrnm + \"\').style.display=\'block\'\";');
writeln(' setTimeout(fncnm,showupdelay);');
writeln(' fncnm = \"document.getElementById(\'\" + shwlyrnm + \"\').style.display=\'none\'\";');
writeln(' setTimeout(fncnm,durationtime);');
writeln('}');
writeln('/*position: 0 for from-top, 1 for into-bottom; space-code must be inserted at the last node of the page to avoid malfunction!*/');
writeln('ad4u_pushdownlyr(\'ad4u73744_lyr\',\'ad4u73744_tag\',0/*position*/,0/*show up delay*/,10000/*show duration time*/);');
writeln('</SCRIPT>');
}
 
