Home > Web Front-end > JS Tutorial > Dynamic control of Table's js code_javascript skills

Dynamic control of Table's js code_javascript skills

WBOY
Release: 2016-05-16 19:17:58
Original
1153 people have browsed it

  
    
             

        

      
        
      
      
        
      
      
        
      
      
        
      
    

      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
    
第一个
第二个
第三个
第四个
第五个
第六个
第七个
第八个
第九个
第十个
      
第一个

      <script> <br><!-- <br>var moveRow=false; <br>var moveRadio=false; <br>function radioChecked(obj){ <br> moveRadio=obj; <br> moveRow=obj.parentNode.parentNode; <br>} <br>function moveUp(){ <br> if(moveRow){ <br> var prevRow=moveRow.previousSibling; <br> if(prevRow){ <br> document.all["DynaTable"].childNodes[0].insertBefore(moveRow,prevRow); <br> moveRadio.checked=true; <br> } <br> } <br>} <br>function moveDown(){ <br> if(moveRow){ <br> var nexRow=moveRow.nextSibling; <br> if(nexRow){ <br> var nnextRow=nexRow.nextSibling; <br> if(nnextRow){ <br> document.all["DynaTable"].childNodes[0].insertBefore(moveRow,nnextRow); <br> }else{ <br> document.all["DynaTable"].childNodes[0].appendChild(moveRow); <br> } <br> moveRadio.checked=true; <br> } <br> } <br>} <br>function moveEnd(){ <br> if(moveRow){ <br> document.all["DynaTable"].childNodes[0].appendChild(moveRow); <br> moveRadio.checked=true; <br> } <br>} <br>function moveFirst(){ <br> if(moveRow){ <br> document.all["DynaTable"].childNodes[0].insertBefore(moveRow,document.all["DynaTable"].childNodes[0].firstChild); <br> moveRadio.checked=true; <br> } <br>} <br>//--> <br></script>                         第二个                                第三个                                第四个                                第五个                                第六个                                第七个                                第八个                                第九个                                第十个               
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template