function choice(列表框的选项)

解决方案 »

  1.   

    <select onchange="M1.src=this.options[this.selectedIndex].text+'-ok';alert(M1.src);">
    <option>first
    <option>last
    <option>end
    </select>
    <img name=M1>
      

  2.   

    在<select>的onchange事件里写函数
    function changeURL()
    {
        var ss=document.getElementById('ee').value;
        document.write('<img src='..'+ss+'' name='b'>')
    }你可以在服务器端写啊,比js简单!
      

  3.   

    不知兄台是不是要这样的函数。。function NaviageURL(SelectID,ImageID)
    {
    var Select=document.all(SelectID);
    var Image=document.all(ImageID);
    var imgURL="/dlkf/login/"+Select.value;
    Image.src=imgURL;
    }