【发布时间】:2013-09-13 19:19:33
【问题描述】:
有人可以检查为什么我的 javascript 代码在 Internet Explorer 9 中无法运行,但在 Firefox 中运行正常吗???此外,代码在 Google Chrome 中也不起作用。
<html>
<head>
<title>test</title>
<script type="text/javascript">
function showF4(){
document.getElementById('showF4').style.display = "block";
}
</script>
</head>
<body>
<form method="post" action="" enctype="multipart/form-data" method="post">
<p><select class="selField" id="list_sel" name="list_type" >
<option id="F4DOL" onmouseover="showForm7()" onmouseout="hideForm7()" onclick="showF4()" value="F4 Document List"> F4 Document List </option>
</select></p>
</form>
<div id="showF4" style="display: none">
<p><font color="red">*</font>Feature:
<input id="f4_input" name="f4_input" type="text" value="" /> </p>
</div>
</body>
</html>
【问题讨论】:
-
js函数showForm7() & hideForm7()在哪里?
-
w3.org/TR/DOM-Level-2-HTML/html.html#ID-70901257 - 这些事件不是为
<option />元素定义的 -
忘记 showForm7() & hideForm7() , 不重要, 看看 showF4() , 我想显示块 show f4 , 当我点击下拉菜单时
标签: javascript internet-explorer cross-browser internet-explorer-9