javscript函数
<script>function Inner(value)
{
switch{ case value
case "spe_ishot":
document.all.GY.innerhtml = "<select name='key' style='width:100;border:1px solid;'>
<option value='1'>已推荐</option><option value='0'>推荐</option></script>"
break;
case "spe_istop":
document.all.GY.innerhtml = "<select name='key' style='width:100;border:1px solid;'>
<option value='1'>已置顶</option><option value='0'>置顶</option></script>"
break;
case "spe_isorder":
document.all.GY.innerhtml = "<select name='key' style='width:100;border:1px solid;'>
<option value='1'>已排名</option><option value='0'>排名</option></script> "
break;
default
document.all.GY.innerhtml = " <input type='text' name='key' />"
break;
}
}
</script>
运行时怎么页面上会有如下的显示:
" break; case "spe_istop": document.all.GY.innerhtml = " 已置顶置顶" break; case "spe_isorder": document.all.GY.innerhtml = " 已排名排名 " break; default document.all.GY.innerhtml = " " break; } }
这种函数怎么会有显示呢? 请指点一下