各位大哥大姐高手们,救命啊!!!!!!!!!!! visibility 是什么啊?FRAME的属性?我的菜单是用软件生成的,SOTHINK。COM。CN 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 style是元素的样式,改为hidden就是隐藏之 隐藏不行啊,都看不见了啊,我只是一部分需要看不见请大家看看原理图啊,谢谢大家,帮我想办法哦http://www.jszk.org/images/cd.gif 一般是在菜单弹出时隐藏框架,回缩时再显示。非要做的很漂亮,在隐藏框架的同时在iframe的位置上显示一个象框架的控件(textarea)或者图片(干脆做个截图更象),调整好表现效果,看起来就差不多了。对select有相同的问题,可以直接用text来模拟。 看了你的原理图,用的好象是frame或者很大的iframe,恐怕不行耶。要不动态把菜单变成select控件(不用层了),因为在ie里面select最大不但框架要让他,连浏览器的边界都栏不到他。 试了一下,效果不理想。大家看看还能怎么调整一下不。<html><head><title></title><SCRIPT LANGUAGE="JavaScript"><!--function showSelect(i){menu[i].style.display="none"_menu[i].style.display=""}function hideSelect(i){menu[i].style.display=""_menu[i].style.display="none"}//--></SCRIPT></head><body><span style="width:72; height:21" onmouseOver="showSelect(0)" id=menu>test</span><select style="width:80; height:20;display:none" onmouseout="hideSelect(0)" id=_menu> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> </select> <span style="width:72; height:21" onmouseOver="showSelect(1)" id=menu>test</span><select style="width:80; height:20;display:none" onmouseout="hideSelect(1)" id=_menu> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> <option>test</option> </select> <BR><iframe></iframe></body></html> 瞧瞧我这个,不要说框架,就是select控件都不怕,就是美工比较难做好。<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title></title><SCRIPT LANGUAGE="JavaScript"><!--function doSelect(elm){if (elm.selectedIndex == 0) return;/***** 在这里开始根据选择的项目切换页面 *********/frame1.document.body.innerHTML= elm.children[elm.selectedIndex].value;/*****************************/elm.selectedIndex=0frame1.focus()}//--></SCRIPT></head><body><select style="position:absolute;left:-2;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)"> <option>文件</option> <option value="new.html">新建</option> <option value="open.html">打开</option> <option value="close.html">关闭</option> <option value="exit.html">退出</option></select><select style="position:absolute;left:100;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)"> <option>编辑</option> <option value="cut.html">剪切</option> <option value="copy.html">复制</option> <option value="paste.html">粘贴</option></select><select style="position:absolute;left:200;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)"> <option>搜索</option> <option value="search.html">查找</option> <option value="replace.html">替换</option></select><select style="position:absolute;left:300;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)"> <option>窗口</option> <option value="last.html">上一个</option> <option value="next.html">下一个</option></select><select style="position:absolute;left:400; top:-2;width=700; font-size:15;background-color:#00FFFF;color:black" disabled></select><BR> <select><option>test</option></select><BR><iframe id=frame1></iframe></body></html> 高手及路过者请进来看看,怎么从javascript中调另一个JS的方法, 请各位高用帮忙!!!!! 特别有研究价值的:输入框输入前一个字即在下拉框调出此字开头的名称 请教:如题 懂支持SCORM课件的LMS开发的请进! 在线急等。怎么实现ppt个实在网页中的显示? 哪位达人知道HTML控件里name和id的区别? 在一个HTML文件中用到别的java_script文件时用脚本编辑器运行时用到该文件中的函数时会出错 請問如何得到某一組件在頁面中的坐標位置? 请教斑竹一个关于iframe的问题. SCROLLBAR 送分题(在线等待,送分) 请问:通过javascript如何获取动态IP
非要做的很漂亮,在隐藏框架的同时在iframe的位置上显示一个象框架的控件(textarea)或者图片(干脆做个截图更象),调整好表现效果,看起来就差不多了。
对select有相同的问题,可以直接用text来模拟。
<head>
<title></title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showSelect(i)
{
menu[i].style.display="none"
_menu[i].style.display=""
}
function hideSelect(i)
{
menu[i].style.display=""
_menu[i].style.display="none"
}
//-->
</SCRIPT>
</head>
<body>
<span style="width:72; height:21" onmouseOver="showSelect(0)" id=menu>test</span>
<select style="width:80; height:20;display:none" onmouseout="hideSelect(0)" id=_menu>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
</select>
<span style="width:72; height:21" onmouseOver="showSelect(1)" id=menu>test</span>
<select style="width:80; height:20;display:none" onmouseout="hideSelect(1)" id=_menu>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
<option>test</option>
</select> <BR>
<iframe></iframe></body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function doSelect(elm)
{
if (elm.selectedIndex == 0) return;
/***** 在这里开始根据选择的项目切换页面 *********/
frame1.document.body.innerHTML= elm.children[elm.selectedIndex].value;
/*****************************/
elm.selectedIndex=0
frame1.focus()
}
//-->
</SCRIPT>
</head>
<body>
<select style="position:absolute;left:-2;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)">
<option>文件</option>
<option value="new.html">新建</option>
<option value="open.html">打开</option>
<option value="close.html">关闭</option>
<option value="exit.html">退出</option>
</select>
<select style="position:absolute;left:100;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)">
<option>编辑</option>
<option value="cut.html">剪切</option>
<option value="copy.html">复制</option>
<option value="paste.html">粘贴</option>
</select>
<select style="position:absolute;left:200;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)">
<option>搜索</option>
<option value="search.html">查找</option>
<option value="replace.html">替换</option>
</select>
<select style="position:absolute;left:300;top:-2; width=121;font-size:15;background-color:#00FFFF;color:black" onchange="doSelect(this)">
<option>窗口</option>
<option value="last.html">上一个</option>
<option value="next.html">下一个</option>
</select>
<select style="position:absolute;left:400; top:-2;width=700; font-size:15;background-color:#00FFFF;color:black" disabled>
</select>
<BR>
<select><option>test</option></select>
<BR>
<iframe id=frame1></iframe>
</body>
</html>