日期:2014-05-16  浏览次数:20367 次

怎么总说缺少对象?
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<html>
<head>
<title> Untitled   Document </title>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<script   language= "text/javascript ">
<!--
function   c(str){
switch(str){
case   "a ":alert( "a ");break;
case   "b ":alert( "b ");break;
case   "c ":alert( "c ");break;
}
}
//-->
</script>
</head>

<body>
<input   type= "radio "   checked   name= "s1 "   onclick= "c( 'a ') "> a
<input   type= "radio "   name= "s1 "   onclick= "c( 'b ') "> b
<input   type= "radio "   name= "s1 "   onclick= "c( 'c ') "> c
</body>
</html>

------解决方案--------------------
你语法不对:
这句:
<script language= "text/javascript ">
改成:
<script type= "text/javascript "> 或者 <script language= "javascript>

------解决方案--------------------
value
------解决方案--------------------
<script language= "text/javascript ">
这个有问题啊
至于value应该不是这样的问题!
------解决方案--------------------
<script language= "text/javascript "> 这句话有问题。
在XHTML1.0标准中推荐写法是 <script type= "text/javascript ">
不过推荐两个属性都写进去 <script type= "text/javascript " language = "javascript ">
这样可以向下兼容浏览器。
------解决方案--------------------
jf