Rexdf

The devil is in the Details.

某著名大学的一个行政页面

| Comments

下面是某著名大学的行政页面,请注意是页面源码,不是我截取的部分代码,我想…… 唉,还是算了,发火不好的。

<script language="javaScript" type="">
var dwh = "null";
//处理左侧树的点击事件
function hitTree(code,txt,deep,isleaf,key,action){
    var u = action;
    
    //处理打印dwh
    if(code.indexOf("800002")>-1){
    	u = u.replace("amp;","");
    	if("null" != dwh && dwh.length > 0){
    		u = u + "&dwh=" + dwh;
    	}
    }
    
	//判断是否是学生查询目录
	if("null" == dwh && (code.indexOf("700001")>-1) || (code.indexOf("700002")>-1) || code.indexOf("600001")>-1 || code.indexOf("500003")>-1){
		window.open(u,"","width=900,height=600,top=100,left=100,location=no,resizable=no,toolbar=no,menubar=no,scrollbars=yes");
	}else{
    	centerFrame.location.href = u;
	}
}
</script>
<body topmargin=0 bottommargin=0 onLoad="doIframheight()">
	<center>
		<table border="0" cellpadding="0" cellspacing="0" width=768>
			<tr>

				<td>
					<table width=100% border="0" cellpadding="0" cellspacing="0">
						<tr>
							<iframe name"=mainframe " id="mainframe" frameborder="0"
								border="0" src="/yjszs/wsbm/top.jsp?userName=xxxxxxxxx@yjszsss"
								scrolling="no" width=768 height=200></iframe>
						</tr>
						<tr>
							<table width=100% border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td>
										<iframe scrolling="no" marginwidth="0" marginheight="0"
											name="leftmenu" border="0" frameborder="0"
											src="common.yjszspagecontroller.do?m=showTree" scrolling="no"
											width=187 height=900>
									</td>
									<td>
										<iframe scrolling="yes" noresize="true" marginwidth="4"
											border="0" frameborder="0" marginheight="1"
											name="centerFrame" src="search.ksNotice.do?m=lookList" width=581 height=900
											target="_self">
									</td>
								</tr>
							</table>
						</tr>
						<tr>
							<iframe scrolling="no" noresize="true" marginwidth="0" border="0"
								frameborder="0" marginheight="0" src="/yjszs/wsbm/bottom.jsp" width=768
								heigth=40></iframe>
						<tr>
					</table>

				</td>
		</table>
	</center>
</body>
</html>
<SCRIPT FOR=window EVENT=onload LANGUAGE="JScript">
function doIframheight(){
if(leftmenu.document.body.scrollHeight>centerFrame.document.body.scrollHeight)
 {
 document.leftmenu.height=leftmenu.document.body.scrollHeight;
 document.centerFrame.height=leftmenu.document.body.scrollHeight;
 document.callleftmenu.height=leftmenu.document.body.scrollHeight;
 }
 else{
 document.leftmenu.height=centerFrame.document.body.scrollHeight;
 document.centerFrame.height=centerFrame.document.body.scrollHeight;
 document.callleftmenu.height=centerFrame.document.body.scrollHeight;
 }
 
 }

</SCRIPT>

Comments