问题解决了:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
alert(targ);
alert(selObj.options[selObj.selectedIndex].value);
alert(selObj.options[selObj.selectedIndex].text);
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head><body>
<form name="form1">
<select name="menu2" onchange="MM_jumpMenu('parent',this,0)">
<option value="http://www.hao123.com">hao123</option>
<option value="http://www.google.com">google</option>
<option value="http://www.baidu.com">baidu</option>
</select>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
alert(targ);
alert(selObj.options[selObj.selectedIndex].value);
alert(selObj.options[selObj.selectedIndex].text);
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head><body>
<form name="form1">
<select name="menu2" onchange="MM_jumpMenu('parent',this,0)">
<option value="http://www.hao123.com">hao123</option>
<option value="http://www.google.com">google</option>
<option value="http://www.baidu.com">baidu</option>
</select>
</form>
</body>
</html>
解决方案 »
- 请各位高手推荐几本学习SSH的书吧
- jxl+struts+hibernate操作时出现java.lang.NoClassDefFoundError: jxl/Workbook问题.
- Hibernate3-0连接数据库方法(谢谢大家了)
- 不会因为0分帖就不告诉我这个简单的问题了吧 :》
- 请问:java.sql.RetsultSet中的.last()的操作机制是什么?此操作效率很低。
- j2ee应该怎么学起!
- 又出问题了......我按下面这个教程中建立客户端测试sessionBen时....提示getName()找不到......
- 用j2ee部署EJB的一个问题!
- 求帮忙,这是什么错误啊??
- 求解,,hibernate问题
- 鼠标划过超链接弹出框问题!
- 传递参数
function xiexie(obj)
{
alert(obj.options[obj.selectedIndex].text);}
</script><select name="list" onchange="javascript:xiexie(this)">
<option value="http://www.hao123.com">hao123 </option>
<option value="http://www.google.com">google </option>
<option value="http://www.baidu.com">baidu </option>
</select>