附该页面中的代码,如下:
Entrance.htm
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--<meta http-equiv="Refresh" content="5;url=Entrance.htm"/>
<script language="JavaScript">
window.self.focus();
</script>-->
<SCRIPT LANGUAGE="JavaScript">
function window.onunload(){
window.self.focus();
if((event.clientX<0 && event.clientY < 0)||(window.event.altKey && window.event.keyCode==115))
// alert("您已经成功退出本系统!");
//var bln=confirm('提示:您确定要退出系统吗?')
//if (bln){
// window.open("http://www.csdn.net","_blank");
window.open("Exit.aspx","_blank");
//}
}
</SCRIPT>
</head>
<frameset rows="30,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.aspx" name="topFrame" scrolling="no" noresize >
<frameset cols="150,*" framespacing="0" border="0" frameborder="0" id="leftright">
<frame name="menu" src="left.aspx" scrolling="yes">
<frame name="main" src="desktop.aspx" scrolling="yes">
<noframes>
<body topmargin="0" leftmargin="0">
<p>此网页使用了框架,但您的浏览器不支持框架</p>
</body>
</noframes>
</frameset>
</frameset>
</html>
Entrance.htm
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--<meta http-equiv="Refresh" content="5;url=Entrance.htm"/>
<script language="JavaScript">
window.self.focus();
</script>-->
<SCRIPT LANGUAGE="JavaScript">
function window.onunload(){
window.self.focus();
if((event.clientX<0 && event.clientY < 0)||(window.event.altKey && window.event.keyCode==115))
// alert("您已经成功退出本系统!");
//var bln=confirm('提示:您确定要退出系统吗?')
//if (bln){
// window.open("http://www.csdn.net","_blank");
window.open("Exit.aspx","_blank");
//}
}
</SCRIPT>
</head>
<frameset rows="30,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.aspx" name="topFrame" scrolling="no" noresize >
<frameset cols="150,*" framespacing="0" border="0" frameborder="0" id="leftright">
<frame name="menu" src="left.aspx" scrolling="yes">
<frame name="main" src="desktop.aspx" scrolling="yes">
<noframes>
<body topmargin="0" leftmargin="0">
<p>此网页使用了框架,但您的浏览器不支持框架</p>
</body>
</noframes>
</frameset>
</frameset>
</html>
IIS里右击你的网站目录-->属性-->主目录-->找到【执行权限】,选择纯脚本或者带有脚本执行权限的项。
晚安。