我写了如下的网页左右是可以实现的,可就是我想上下也显示时,出现了问题,
<HTML>
<HEAD>
<title>电视互动</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<SCRIPT>
winLR = "on";
winUD = "on";
function switchSysBar() {
if (winLR == "on") {
winLR = "off";
switchPoint.src = "../images/arrow02.gif";
document.all("leftFrm").style.display = "none";
} else {
winLR = "on";
switchPoint.src = "../images/arrow01.gif";
document.all("leftFrm").style.display = "";
}
}
function switchSysBarUD() {
if (winUD == "on") {
winUD = "off";
switchPointUD.src = "../images/arrow_down.gif";
document.all("topfrm").style.display = "none";
} else {
winUD = "on";
switchPointUD.src = "../images/arrow_up.gif";
document.all("topfrm").style.display = "";
}
}
</SCRIPT>
</HEAD>
<body style="MARGIN: 0px" bgColor="#ffffff" scroll="no">
<table height="100%" width="100%" cellSpacing="0" cellPadding="0" border="0">
<tr>
<td id="leftfrm" vAlign="top"><iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 160px; HEIGHT: 100%" name="left" src="" frameBorder="0" scrolling="auto"></iframe></td>
<td bgColor="#c0c0c0">
<table height="100%" cellSpacing="0" cellPadding="0" border="0">
<tr>
<td onclick="switchSysBar()"><IMG id="switchPoint" src="../images/arrow01.gif"></td>
<td width="1" bgColor="#090c11"><img src="" width="1"></td>
</tr>
</table>
</td>
<td vAlign="top" width="100%" height="100%">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr vAlign="top">
<td id="topfrm"><iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" name="top" src="" frameBorder="0" scrolling="auto"></iframe></td>
</tr>
<tr vAlign="top">
<td height="7">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr vAlign="top" bgColor="#c0c0c0">
<td onclick="switchSysBarUD()" align="middle"><IMG id="switchPointUD" src="../images/arrow_up.gif"></td>
</tr>
<tr valign="top">
<td height="1" bgColor="#090c11"><img src="" height="1"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><iframe frameborder="0" name="main" scrolling="yes" src="http://www.rich-mobile.com" style="Z-INDEX:13;VISIBILITY:inherit;WIDTH:100%;HEIGHT:100%"></iframe></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</HTML>
发表于 @ 2006年05月08日 16:01:00|评论(loading...)|编辑