IE firefox 菜鸟问题
我想用html做一个左边可伸缩布局,网上找的代码如下
html>
<head>
<SCRIPT>
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}else{
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}}
</SCRIPT></head>
<BODY scroll=no style=MARGIN:0px>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=100% width=100%>
<TBODY><TR><TD align=middle id=frmTitle noWrap vAlign=center>
<IFRAME frameBorder=0 name=yuzi scrolling=auto src=LEFT.HTML style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:210px;Z-INDEX:2"></IFRAME>
<TD bgColor=0095F9>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=100%>
<TBODY><tr><TD onclick=switchSysBar() style=HEIGHT:100%;>
<font style="COLOR:white;CURSOR:hand;FONT-FAMILY:Webdings;FONT-SIZE:9pt">
<SPAN id=switchPoint>3</SPAN>
</TBODY></TABLE></TD><TD style=WIDTH:100%>
<IFRAME frameBorder=0 id=main name=news scrolling=yes src=RIGHT.HTML style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:1"></IFRAME>
</TR></TBODY></TABLE></html>
<!doctype html>
<html>
<head>
<SCRIPT>
function switchSysBar(){
var switchPoint = document.getElementById("switchPoint");
var frmTitle = document.getElementById("frmTitle");
if (switchPoint.innerHTML=="3"){
switchPoint.innerHTML="4";
frmTitle.style.display="none";
}else{
switchPoint.innerHTML="3";
frmTitle.style.display="block";
}}
</SCRIPT>
</head>
<BODY scroll=no style=MARGIN:0px>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=100% width=100%>
<TBODY>
<TR>
<TD align=middle id=frmTitle noWrap vAlign=center>
<IFRAME frameBorder=0 name=yuzi scrolling=auto src=LEFT.HTML style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:210px;Z-INDEX:2"></IFRAME>
</TD>
<TD bgColor=0095F9>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=100%>
<TBODY>
<tr>
<TD onclick="switchSysBar();" style="HEIGHT:100%;CURSOR:pointer;">
<font style="COLOR:white;FONT-FAMILY:Webdings;FONT-SIZE:9pt">
<SPAN id=switchPoint>3</SPAN>
</font>
</TD>
</tr>
</TBODY>
</TABLE>
</TD>
<TD style=WIDTH:100%>
<IFRAME frameBorder=0 id=main name=news scrolling=yes src=RIGHT.HTML style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:1"></IFRAME>
</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>