javascript如何动态改变frame的属性 20
代码如下前台function函数functionchangedisplay(){if(parent.document.all("Tool").rows=="60,*"){...
代码如下
前台function函数
function changedisplay() {
if (parent.document.all("Tool").rows == "60,*") {
parent.document.all("Tool").rows = "30,*";
document.all("RtoL").src = ".\\Imags\\left_icon.gif";
}
else {
parent.document.getElementsByName("Menu").item(0).rows = "60,*";
document.all("RtoL").src = ".\\Imags\\right_icon.gif";
}
}
主页前台html<frameset >标记
<frameset rows="100,*,25" noresize="true">
<frameset cols="1003,*" scrolling="no" frameborder="0" border="0">
<frame name="Title" scrolling="no" src="Title.aspx" frameborder="0" border="0" noresize="true">
<frame name="Title1" scrolling="no" src="Title1.aspx" frameborder="0" border="0" noresize="true">
</frameset>
<frameset id="Tool" cols="190,*" noresize="true">
<frame name="LeftTree" scrolling="auto" src="Tree.aspx" noresize="true">
<frameset rows="30,*" frameborder="1" border="1" noresize="true">
<frame name="Menu" scrolling="no" src="menu.aspx?Page=1" noresize="true">
<frame name="Main" src="Main.aspx" scrolling="auto" noresize="true">
</frameset>
</frameset>
<frame name="State" scrolling="no" src="State.aspx" noresize="true">
</frameset>
提问:我想让Menu的高度增加到60,*请问这个function该怎么写? 展开
前台function函数
function changedisplay() {
if (parent.document.all("Tool").rows == "60,*") {
parent.document.all("Tool").rows = "30,*";
document.all("RtoL").src = ".\\Imags\\left_icon.gif";
}
else {
parent.document.getElementsByName("Menu").item(0).rows = "60,*";
document.all("RtoL").src = ".\\Imags\\right_icon.gif";
}
}
主页前台html<frameset >标记
<frameset rows="100,*,25" noresize="true">
<frameset cols="1003,*" scrolling="no" frameborder="0" border="0">
<frame name="Title" scrolling="no" src="Title.aspx" frameborder="0" border="0" noresize="true">
<frame name="Title1" scrolling="no" src="Title1.aspx" frameborder="0" border="0" noresize="true">
</frameset>
<frameset id="Tool" cols="190,*" noresize="true">
<frame name="LeftTree" scrolling="auto" src="Tree.aspx" noresize="true">
<frameset rows="30,*" frameborder="1" border="1" noresize="true">
<frame name="Menu" scrolling="no" src="menu.aspx?Page=1" noresize="true">
<frame name="Main" src="Main.aspx" scrolling="auto" noresize="true">
</frameset>
</frameset>
<frame name="State" scrolling="no" src="State.aspx" noresize="true">
</frameset>
提问:我想让Menu的高度增加到60,*请问这个function该怎么写? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询