SHARE
TWEET

Untitled

a guest Oct 18th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function retirerSurClick(){
  2.     var imgDuTop5 = this;
  3.     var parentImg = imgDuTop5.parentNode;
  4.     var NombreDeCDTop5=0;
  5.    
  6.     var elementCD = document.getElementById("cd");
  7.     imgDuTop5.onclick = ajouterAuTop5;
  8.     imgDuTop5.previousSibling.remove();
  9.     elementCD.appendChild(imgDuTop5);
  10.     //var numSpan = imgDuTop5.getAttribute("id").replace("ordre")
  11.    
  12.     var count = 1;
  13.     for(var i=0;i<parentImg.childNodes.length;i++){
  14.         if(parentImg.childNodes[i].nodeName.toLowerCase() == "span"){
  15.             parentImg.childNodes[i].lastChild.nodeValue = count;
  16.             count+=1;
  17.         }
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top