就像 myeclipse 运行,debug的按钮那种像html的select的下拉式的导航栏。当前默认一个单击触发事件,点击旁边的下拉,显示下拉选项点击下拉列表的某个选项事件触发

解决方案 »

  1.   

    楼主说的什么?  <input type="button" value="点击" onclick="document.getElementById('sel').style.display='block'"/>
      <select id="sel" style="width:auto;display:none" >
      <option  value="1">onmouseover</option>
      <option  value="2">onmouseout</option>
      <option  value="3">onfocus</option>
      <option  value="4">onblur</option>
    </select>
    <script>
       document.getElementById('sel').onchange=function(){
       var x=["","onmouseover","onmouseout","onfocus","onblur"];
              alert(x[this.value]);   
       }
    </script>是不是这个意思??
      

  2.   


    1 ie,firefox,360 浏览器有木有
    2 浏览器的右上角有木有像下拉列表一样的按钮有木有就是那个像下拉列表的按钮是怎么写的
      

  3.   

    1 ie,firefox,360 浏览器
    2 浏览器的右上角有木有像下拉列表一样的按钮
    就是那个像下拉列表的按钮用js和html怎么写
      

  4.   

    网上搜下下拉列表,有很多的。
    这是个最简单的<html>
    <head>
    <script type="text/javascript">
    var i = 0;
    function method(){
    var contentTag = document.getElementById("content");
    if(i==0){
    contentTag.style.display="";//display=""是把div显示出来
    i = 1;
    }else if(i==1){
    contentTag.style.display="none";//display="none"是把div不显示出来
    i = 0;
    }
    }
    </script>
    <title>Haha</title>
    </head>
    <body>
    <center>
    <span id="dw" onclick="method();">点我试试</span>
    <div id="content" style="display:none;width:50px;height:100px;background-color:#dde3ec">
    <a href="#">连接1</a>
    <a href="#">连接2</a>
    <a href="#">连接3</a>
    </div>
    </center>
    </body>
    </html>
      

  5.   

    你的意思是 下拉菜单的意思吧。。
    用div写一个即可。。