代码收藏专用贴(请勿评论)

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 iuhxq 的 blog

<select onchange='ok(this)' id=a><option>音乐<option>电影</select>
<select id=b>
</select>
<script>
function ok(objs){
if(objs.options[objs.selectedindex].text=="音乐")b.outerhtml="<select id=b><option selected>音乐1<option>音乐2"
if(objs.options[objs.selectedindex].text=="电影")b.outerhtml="<select id=b><option selected>电影1<option>电影2"
}
ok(a)
</script>

本文关键:代码收藏专用贴(请勿评论)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top