
下拉菜单被框架挡住了,请高手帮忙。。最好能给个简单实用一点的例子? 30
我有一个frame页面,分为topandcontent两个frameset.我的菜单放在top页上,但是不能完全显示下拉菜单。top部分完全由javascript实现,谁...
我有一个frame页面,分为top and content 两个frameset.
我的菜单放在top页上,
但是不能完全显示下拉菜单。
top 部分完全由javascript实现,
谁能给我一个简单实用一点的例子?
框架源码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frame src="main.html" name="mainFrame" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html> 展开
我的菜单放在top页上,
但是不能完全显示下拉菜单。
top 部分完全由javascript实现,
谁能给我一个简单实用一点的例子?
框架源码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frame src="main.html" name="mainFrame" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html> 展开
1个回答
展开全部
top 部分完全由javascript实现,
把生成下拉菜单的那个javascript,放在父页面,在你的top.html子页面,调用那个方法
把生成下拉菜单的那个javascript,放在父页面,在你的top.html子页面,调用那个方法
追问
不明白,写清楚点可以吗?
追答
例如你父页面是index.html 里边写个方法
function fuyemian(){
alert("我是父页面方法");
}
然后在子页面 top.html调用那个方法
parent.fuyemian();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询