跳转菜单——可不可以在框架里打开?
来源:百度知道 编辑:UC知道 时间:2024/06/16 09:07:40
请问
跳转菜单——可不可以在框架里打开?
谢谢了!
就这段代码!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<body>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option value="" selected>请选择网站</option>
<option value="http://www.yahoo.com.cn/">Yahooo!</option>
<option value="
跳转菜单——可不可以在框架里打开?
谢谢了!
就这段代码!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<body>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option value="" selected>请选择网站</option>
<option value="http://www.yahoo.com.cn/">Yahooo!</option>
<option value="
iframe name="I1" src="http://www.hao123.com/" target="_blank">
去掉target="_blank",然后将MM_jumpMenu('parent',this,0)"改成MM_jumpMenu('I1',this,0)">