页面框架结构是左iframe 右iframe结构,请问怎么样让左iframe 具有往左边隐藏和显示的功能,JS代码改怎么实现。
解决方案 »
- 一個ASP模版,不懂得如何加入SQL
- 如何把浮动框架的高设置为自动的
- imagebutton加了图片怎么会不显示的? ASP.NET
- 文件上传到服务器,和如何把该文件的路径名插入到数据库??????急急急急急急急急急!!!!!!!!!!!
- dataset
- 物价涨了,花钱更小心了。
- 走过路过,帮我这个菜鸟看看行吗?
- 我给高分求解!!!!!!!大家都用过Customvalidator控件的客户端验证吗? 不论我使用vbscript也好javascript也好都报相同的错误,
- sql语句的错误。谢谢!
- 请问谁知道那里有比较漂亮的进度条控件下载?
- 求解DataGrid导入Excel问题! 急!!!!!!!!!
- WEB里怎么使用颜色选择对话框?
控制div 的大小
<iframe width="100" id=iframe1 src="HTMLPage3.aspx"></iframe>
</div>
<div id="YYY"><iframe width="200" id=iframe2 src="HTMLPage5.htm"></iframe>
</div><script language="javascript">
XXX.style.visibility = "hidden";
</script>当然,你也可以设置XXX.style.width等;
只要有这个功能的,看一下它的页面的HTML就知道了...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<meta content="all" name="robots" />
<meta name="Author" content="[email protected] ,活靶子" />
<meta name="Copyright" content="www.AspxBoy.Com,自由版权,任意转载." />
<meta name="Description" content="www.AspxBoy.Com" />
<meta name="Keywords" content="www.AspxBoy.Com,活靶子,huobazi" />
<title> New New Document</title>
<style type="text/css">
.navPoint {COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt}
</style>
</head><body style="MARGIN: 0px" scroll=no>
<script>
if(self!=top){top.location=self.location;}
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><table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
<tr>
<td align="middle" noWrap vAlign="center" id="frmTitle">
<iframe frameBorder="0" id="carnoc" name="carnoc" scrolling="no" src="left.html" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 150px; Z-INDEX: 2">
</iframe>
</td>
<td style="WIDTH: 9pt" class=division>
<table border="0" cellPadding="0" cellSpacing="0" height="100%">
<tr>
<td style="HEIGHT: 100%" onclick="switchSysBar()">
<font style="FONT-SIZE: 9pt; CURSOR: default; COLOR: #ffffff">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<span class="navPoint" id="switchPoint" title="关闭/打开左栏">3</span><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
屏幕切换 </font></td>
</tr>
</table>
</td>
<td style="WIDTH: 100%"> <iframe frameBorder="0" id="main" name="main" scrolling="yes" src="right.html" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1">
</iframe> </td>
</tr>
</table>
</html>
<script>
if(window.screen.width<'1024'){switchSysBar()}
</script>
</body></html>