看看这段代码,如果让它可以支持IE5?高分相赠!
<SCRIPT language="JavaScript">
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}
else{
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}
}
function expandTopFrame(){
if (typeof(frmright)!="undefined"){
if (typeof(frmright.frmMain)!="undefined") {
frmright.frmMain.rows="*,45"
}
}
}
function expandBottomFrame(){
if (typeof(frmright)!="undefined"){
if (typeof(frmright.frmMain)!="undefined") {
frmright.frmMain.rows="45,*"
}
}
}
function restoreSplit(){
if (typeof(frmright)!="undefined"){
if (typeof(frmright.frmMain)!="undefined") {
frmright.frmMain.rows="*,220"
}
}
}
document.write("</HEAD><BODY style='MARGIN: 0px' scroll=no>")
document.write("<TABLE height='100%' cellSpacing=0 cellPadding=0 width='100%' border=0><TBODY><TR>")
document.write("<TD id=frmTitle vAlign=center noWrap width='150' name='frmTitle'>")
document.write("<IFRAME id=BoardTitle style='Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 150px; HEIGHT: 100%' border=0 name=window_left src='index_left.asp' frameBorder=0 scrolling=yes>")
document.write("</IFRAME>")
document.write("<TD bgColor=#000000 width='8'>")
document.write("<TABLE cellSpacing=1 cellPadding=1 class=tableborder>")
document.write("<TBODY><TR><TD onclick=switchSysBar() class=tablebody>")
document.write("<SPAN class=navPoint id=switchPoint title=关闭/打开左栏>3</SPAN>")
document.write("</TR></TBODY></TABLE></TD>")
document.write("<TD width=* >")
document.write("<IFRAME id=frmright style='Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%' name=window_main src='index.asp' frameBorder=0 scrolling=yes target='_self'>")
document.write("</IFRAME></TD></TR></TBODY></TABLE></BODY></HTML>")
</SCRIPT>