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

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

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

    yeafee@夜飛郎

    it's usually better to solve problems with simplicity and finesse rather than muscle.

      BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      33 隨筆 :: 3 文章 :: 2 評(píng)論 :: 0 Trackbacks


    <! DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    < html? xmlns ="http://www.w3.org/1999/xhtml" >
    < head >
    < meta? http-equiv ="Content-Type" ?content ="text/html;?charset=gb2312" ? />
    < title > Option?Element??Move </ title >
    < style? type ="text/css" >
    <!--
    .STYLE1?
    {} {
    ????color
    : ?#FF0000 ;
    ????font-weight
    : ?bold ;
    }

    -->
    </ style >
    < script? language ="javascript" >
    function ?checkCallCenterChange(sourceSelect,?targetSelect) {
    ????
    ????
    var ?unFinished? = ? " P001,P002,P003 " ;?? // 不可以移動(dòng)的操作項(xiàng)???
    ????? if ?(sourceSelect.selectedIndex? > ? - 1 )? {
    ?????????
    // 遍歷檢查不可移動(dòng)項(xiàng)
    ????????? for ?(i = 0 ;?i? < ?sourceSelect.length;? ++ i) {
    ????????????
    var ?selectedOption? = ?sourceSelect.options[i];
    ????????????
    if ?(selectedOption.selected) {????????????????
    ????????????????
    var ?str? = ?selectedOption.value;????????????????
    ????????????????
    if (isContain(unFinished,str) == 'Y') {
    ?????????????????selectedOption.selected
    = false ;
    ???????????????????alert(
    " 操作項(xiàng)\ "" +selectedOption.text+ " \ " 未完成! " );
    ????????????????}

    ????????????}
    ?
    ????????}
    ????????
    ????}
    ????????
    ????SelectOptionsElementMove(sourceSelect,?targetSelect);????
    }


    function ?isContain(srcStr,str) {
    ??
    var ?flag = " N " ;
    ??
    var ?aryA;
    ??
    if (srcStr.indexOf( " , " ) !=- 1 ) {
    ???????aryA
    = ?srcStr.split( " , " );
    ???????
    for ( var ?i = 0 ;i < aryA.length;i ++ ) {??????
    ???????
    if (aryA[i] == str) {???????????????
    ???????????flag
    = " Y " ;
    ???????????
    continue ;
    ??????}

    ?????}

    ??}
    else {
    ?????
    if (srcStr == str) {
    ??????????flag
    = " Y " ;
    ???????}

    ??}

    ??
    return ?flag;
    }


    function ?SelectOptionsElementMove(sourceSelect,?targetSelect)? {????
    ????
    if ?(sourceSelect.selectedIndex? > ? - 1 ) {
    ????????
    // begin?將sourceSelect.option中的選中項(xiàng)移到targetSelect.option中
    ???????? for ?(i = 0 ;?i? < ?sourceSelect.length;? ++ i) {
    ????????????
    var ?selectedOption? = ?sourceSelect.options[i];
    ????????????
    if ?(selectedOption.selected) {
    ????????????????
    var ?newOption? = ? new ?Option(selectedOption.text,?selectedOption.value);
    ????????????????targetSelect.options[targetSelect.options.length]?
    = ?newOption;
    ????????????}
    ?
    ????????}
    // end
    ????????
    ????????
    // begin?去除sourceSelect?中的選中項(xiàng)
    ???????? for ?(i = sourceSelect.length - 1 ;?i? > ? - 1 ;?i -- ) {
    ????????????
    if ?(sourceSelect.options[i].selected)? {
    ??????????????????sourceSelect.options[i]?
    = ? null ;
    ????????????????}
    ????????????????
    ????????}
    // end
    ????}

    }

    </ script >
    </ head >

    < body >
    < form? name ="fromName" ?method ="post" ?action ="actionName" ?target ="edit" >
    < table? width =100%? border =0? align =center? class ="main-table" >
    < tr? align ="center" >
    ???????????
    < td? >
    ???????????
    < TABLE? border ="0" ?width ="60%"
    ????????????????cellspacing
    ="0" ?cellpadding ="0" ?height ="100%" >
    ????????????????
    < TBODY >
    ????????????????????
    < TR >
    ????????????????????????
    < TD? width ="25%" ?rowspan ="2" ?height ="38" ?align ="center"
    ????????????????????????????valign
    ="middle" > 未被選中
    ????????????????
    ????????????????????????
    < select? name ="unSelectedItem" ?multiple ="multiple" ?size ="7" ?ondblclick ="checkCallCenterChange(this,selectedItem);" ?style ="width:?100%;?height:?110" >
    < option? value ="P001" > 變更一 </ option >
    < option? value ="P002" > 變更二 </ option >
    < option? value ="P003" > 變更三 </ option >
    < option? value ="P004" > 變更四 </ option >
    < option? value ="P005" > 變更伍 </ option >
    < option? value ="P006" > 變更陸 </ option >
    < option? value ="P007" > 變更柒 </ option >
    < option? value ="P008" > 變更拐 </ option >
    < option? value ="P009" > 變更玖 </ option >
    < option? value ="P010" > 變更拾 </ option >
    < option? value ="P011" > 變更11 </ option >
    < option? value ="P012" > 變更12 </ option >
    </ select >
    ????????????????????????
    </ TD >
    ????????????????????????
    < TD? width ="10%" ?align ="center" ?valign ="middle" >
    ????????????????????
    < INPUT???? onclick ="checkCallCenterChange(document.forms[0].unSelectedItem,document.forms[0].selectedItem);" ?type ="button" ?value ="?〉〉" ?name ="B4" >
    ????????????????????????????
    </ TD >
    ????????????????????????
    < TD? width ="25%" ?rowspan ="2" ?height ="38" ?align ="center"
    ????????????????????????????valign
    ="middle" > 被選中
    ????????????????????
    ????????????????????
    < select? name ="selectedItem" ?multiple ="multiple" ?size ="7" ?ondblclick ="checkCallCenterChange(this,unSelectedItem);" ?style ="width:?100%;?height:?110" ></ select >
    ????????????????????????
    </ TD >
    ????????????????????
    </ TR >
    ????????????????????
    < TR >
    ????????????????????????
    < TD? width ="10%" ?align ="center" ?valign ="middle" > ?
    ????????????????????
    < INPUT? onclick ="checkCallCenterChange(document.forms[0].selectedItem,document.forms[0].unSelectedItem);" ?type ="button" ?value ="〈〈?" ?name ="B2" >
    ????????????????????????
    </ TD >
    ????????????????????
    </ TR >
    ????????????????
    </ TBODY >
    ????????????
    </ TABLE >
    ???????????
    </ TD >
    ????????
    </ TR >
    </ table > ????????
    </ body >



    posted on 2007-12-28 16:18 @yeafee 閱讀(805) 評(píng)論(0)  編輯  收藏 所屬分類: JS&HTML

    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 永久免费bbbbbb视频| 四虎1515hh永久久免费| 亚洲精品成人在线| 国产成人va亚洲电影| 亚洲av中文无码| 乱淫片免费影院观看| 国产成人高清亚洲| 中文字幕免费不卡二区| 亚洲国产精品久久66| 日本最新免费网站| 亚洲人成人无码.www石榴 | 亚洲一级毛片免费在线观看| 91免费资源网站入口| 亚洲精品无码永久在线观看男男 | 18禁网站免费无遮挡无码中文| 亚洲色欲色欲www| 国产精品黄页在线播放免费| 成年大片免费高清在线看黄| 亚洲人色婷婷成人网站在线观看| 无码国产精品一区二区免费vr| 亚洲国产av美女网站| 日韩毛片无码永久免费看| 一个人看的www免费高清| 亚洲国产精品VA在线观看麻豆| 日韩免费一区二区三区在线播放| 亚洲小说图区综合在线| 亚洲午夜av影院| 久久成人a毛片免费观看网站| 国产91在线|亚洲| 亚洲免费日韩无码系列| 最近免费中文字幕高清大全| 国产亚洲欧美在线观看| 亚洲国产精品无码成人片久久 | 免费精品无码AV片在线观看 | 日韩在线观看视频免费| 亚洲AV无码欧洲AV无码网站| 最近中文字幕免费mv视频8| 国产精品一区二区三区免费| 亚洲人成电影在线观看网| 国产av无码专区亚洲av果冻传媒| 成人免费在线看片|