#12004/9/20 9:26:56
如何让网页在关闭时弹出对话框,提示是否将本站设为首页。请帮我,谢谢
以下代码为网站打开时提示是否将本站设为首页,如何改成网页关闭时,请指点一下。
自动弹出设为首页
将以下代码加在<head>与</head>之间
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function view(Url,Dwin,wid,hei)
{
popup=window.open(Url,Dwin,"left=0,top=0,width="+wid+",height="+hei+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes, resizable=no";
}
</script>
将以下代码加在<body
转行之间>
onMouseOver="if (style.behavior==''){style.behavior='url(#default#homepage)';setHomePage('http://wsr.y365.com')}"
再将以下代码加在</body>之前
<script language="javascript">
function send_ring(code,song){
window.open("http://wsr.y365.com/ring_send.php?from=hao123com&code="+code+"&song="+song,'','height=235,width=400,resizable=yes');
}
</script>
<script language="javascript">
function send_logo(code,imgdir){
window.open("http://wsr.y365.com/logo_send.php?from=hao123com&code="+code+"&img=http://wsr.y365.com/wnht/"+imgdir,'','height=235,width=400,resizable=yes');
}
</script>
如何将些特效在网页关闭时弹出,急,谢谢!