i want to move row up and down through javascript pop-up menu . for example each row have a link “move row” . when i click on “move row” link pop-up menu open with the link “move up” or “move down” to solve this problem help me
var q=1; for(var i=1;i<r.length;i++){//rewrite lines r[i].parentNode.replaceChild(oRows[sCol[i-1][1]],r[i]); //START zebra q=(q>2)?1:q r[i].className='tr'+q;q++; // END zebra }
//switch arrows var s =['desc.gif','cres.gif','none.gif'];//arrows url var allS =r[0].getElementsByTagName('img'); var sag = w.getElementsByTagName('img')[0]; var url =(sag.getAttribute('src').indexOf(s[1])>-1||sag.getAttribute('src').indexOf(s[2])>-1)?s[0]:s[1]; sag.setAttribute('src',url);