解决方案 »
- jquery dialog中是一个表单,如何获取表单的值,或者是给个例子。
- 怎么从表单中的表格中的内容用javascript调出
- javascript里读取配置文件内容
- 孙鑫谈怎样学习编程
- 请教个关于函数调用的问题:)
- js文件可以传递参数吗?
- 请教,在调用window.showModalDialog()之后再提交表单,此页面的表单的值在提交到的页面就得不到了,请问如何解决。。
- 求助:关于几个Javascript写ASP的问题。来这版问看!
- 简单问题,就是搞不定,希望大家指点迷津!自动提交问题
- javascript中如何判断一个控件是否存在?
- 在VS的编辑环境下怎样才能有最好的EXTJS智能提示?
- jquery 如何获取title
用window.parent.frame.cols
如果不行就用window.parent.frames["frameName"]
改成 parent.document.getElementById(framesetid).cols=……
使用document.getElementById(framesetid)获取frameset对象,注意framesetid是ID号,不是name
试试看行不应为不知道你的页面结构,只能猜了。
parent 是指向上一层
http://www.websjy.com/club/html/html.html上面的代码就是center.html文件中的谢谢帮我
改成
parent.document.getElementById('frame')
就可以了
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>无标题文档</title>
<style>
html, body {margin:0;padding:0;height:100%;}
</style>
<script language="JavaScript" type="text/JavaScript">
function preloadImg(src)
{
var img=new Image();
img.src=src
}
preloadImg("images/f_bar.gif");
var displayBar=true;
function switchBar(obj)
{
if (displayBar)
{
parent.document.getElementById('frame').cols="0,7,*";
displayBar=false;
obj.src="images/e_bar.gif";
obj.alt="打开左边管理导航菜单";
}
else{
parent.document.getElementById('frame').cols="160,7,*";
displayBar=true;
obj.src="images/f_bar.gif";
obj.alt="关闭左边管理导航菜单";
}
}
</script>
</head><body scroll="no">
<table width="7" border="0" cellpadding="0" cellspacing="0" height="100%">
<tbody><tr>
<td onmouseover="this.style.backgroundColor='#C8F2FB'" onmouseout="this.style.backgroundColor='#ffffff'" style="cursor: pointer; background-color: rgb(255, 255, 255);" align="right"><img src="center_data/f_bar.gif" style="cursor: pointer;" alt="关闭左边管理导航菜单" onclick="switchBar(this)" width="6"></td>
</tr>
</tbody></table>
</body></html>
center页