<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 495,comments - 227,trackbacks - 0
    <Html>
    <Head>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    //定義 select 原值
    var oldValue,oldText;
    //select下拉框的onkeydown事件,修改下拉框的值
    function catch_keydown(sel)
    {
    switch(event.keyCode)
    {
      case 13: //回車鍵
      event.returnValue = false;
      break;
      case 27: //Esc鍵
      sel.options[sel.selectedIndex].text = oldText;
      sel.options[sel.selectedIndex].value = oldValue;
      event.returnValue = false;
      break;
      case 8: //空格健
      var s = sel.options[sel.selectedIndex].text;
      s = s.substr(0,s.length-1);
      if (sel.options[sel.selectedIndex].value==sel.options[sel.selectedIndex].text)
      {
       sel.options[sel.selectedIndex].value=s;
       sel.options[sel.selectedIndex].text=s;
      }
      event.returnValue = false;
      break;
    }
    if (!event.returnValue && sel.onchange)
      sel.onchange(sel)
    }

    //select下拉框的onkeypress事件,修改下拉框的值
    function catch_press(sel){
    if(sel.selectedIndex>=0){
    var s = sel.options[sel.selectedIndex].text + String.fromCharCode(event.keyCode);
    if (sel.options[sel.selectedIndex].value==sel.options[sel.selectedIndex].text)
    {
      sel.options[sel.selectedIndex].value=s;
      sel.options[sel.selectedIndex].text=s;
    }
    event.returnValue = false;
    if (!event.returnValue && sel.onchange)
      sel.onchange(sel)
    }
    }

    //select下拉框的onfocus事件,保存下拉框原來的值
    function catch_focus(sel) {
    oldText = sel.options[sel.selectedIndex].value;
    oldValue = sel.options[sel.selectedIndex].value;
    }

    //恢復select下拉列表當前選中的值
    function LoadSelect(obj,value)
    {
    for (var i=0; i< obj.options.length; i++)
      if (obj.options[i].value == value)
      {
      obj.selectedIndex = i;
      break;
      }
    }

    //select 選擇框鼠標上移時提示選擇的內容
    function selMouseOver(obj)
    {
    with (document.all.div_hint)
    {
      innerText = obj.options[obj.selectedIndex].text;
      if (innerText.length > 0)
      {
      innerText = " " + innerText + " ";
      style.display = "block";
      style.left = event.clientX + 16;
      style.top = event.clientY;
      }
    }
    }

    //select 選擇框鼠標移開時消失
    function selMouseOut(obj)
    {
    with (document.all.div_hint)
    {
      style.display = "none"
    }
    }
    //-->
    </SCRIPT>
    </Head>
    <Body>
    <!--調用-->
    <select style='width:130px;z-index:-1' name='tmpSel' onmouseover=selMouseOver(this) onmouseout=selMouseOut(this) onkeydown=catch_keydown(this) onkeypress=catch_press(this) onfocus=catch_focus(this)>
    <option value=''></option>
    </select>

    <!--提示塊-->
    <div id=div_hint style="font-size:12px;color:red;display:none;position:absolute; z-index:2; top:200;background-color: #F7F7F7; layer-background-color: #0099FF; border: 1px #9c9c9c solid;filter:Alpha(style=0,opacity=80,finishOpacity=100);"></div>
    </Body>
    </Html>
    posted on 2006-09-07 11:13 SIMONE 閱讀(587) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲精品一二三区| 国产精品亚洲精品日韩已满| 亚洲精品在线免费看| 成人无码精品1区2区3区免费看| 夜色阁亚洲一区二区三区| 亚洲AV综合色区无码一二三区| 国内一级一级毛片a免费| 亚洲а∨天堂久久精品9966| 最近最好的中文字幕2019免费| 亚洲日本成本人观看| 情侣视频精品免费的国产| 大桥未久亚洲无av码在线| 免费一级毛片不卡不收费| 免费看一级一级人妻片| 亚洲香蕉网久久综合影视| 日韩精品免费视频| 久久精品国产亚洲77777| 最新中文字幕免费视频| 亚洲av无码成人影院一区 | 久久精品无码专区免费东京热| 久久精品国产亚洲AV无码麻豆| 91免费在线播放| 亚洲日韩精品国产3区| 免费一看一级毛片| 美女视频黄的免费视频网页| 久久久久久久亚洲Av无码| 成人免费一级毛片在线播放视频| 99亚洲乱人伦aⅴ精品| 久久亚洲中文字幕精品一区| 日日麻批免费40分钟无码| 亚洲一区二区观看播放| 亚洲国产精品一区二区三区久久 | 亚洲国产成人久久综合一 | 国产亚洲成人在线播放va| 中文字幕免费在线| 国产精品亚洲一区二区三区| 国产亚洲一区二区在线观看| 国产一卡2卡3卡4卡无卡免费视频 国产一卡二卡3卡四卡免费 | 亚洲午夜成激人情在线影院| 国产jizzjizz免费视频| 国产一区二区三区免费|