实现效果:
1.关闭
2.点助手弹出对话框页面.
代码分享:
<html>
<head><title>网站助手</title></head>
<body>
<div id="btn_wzdhzs" style="width:109px; height:144px;position:absolute; top:235px; right:10px;">
<p align="right"><a href="#" onClick="document.getElementById('btn_wzdhzs').style.display='none';return false;"><img border="0" src="images/xx1.jpg" alt="关闭" /></a></p>
<p><a href="javascript:void(0);" onClick="goMapSite();" ><img border="0" src="images/wzdhzs_btn.gif" alt="网站导航助手" /></a></p>
</div>
<SCRIPT language="javascript">
<!--
function goMapSite()
{
var winWidth = 600;
var winHeight = 500;
var scrWidth = screen.width;
var scrHeight = screen.height;
var thisWidth = screen.width / 2 - winWidth /2;
var thisHeight = screen.height / 2 - winHeight /2;
window.open("jsshouhuo.html", "_blank", "width=600, height=500, top=" + thisHeight + ", left=" + thisWidth + ", toolbar=0, menubar=0, scrollbars=0, resizable=0, location=0, status=no");
}
//-->
</script>
</body>
</html>