Use firebug to view the details of the for loop

var container = document.getElementById ("container"),

     oDiv = container.getElementsByTagName("div"),  
     width = oDiv[0].offsetWidth;  
  for(var i = oDiv.length-1;i>=0;i--){    
    oDiv[i].style.left = (oDiv.length-1-i)*50+"px";    
  }  
  
  
  
  foroDiv[]left
  firebug
Mar.19,2021

chrome has a feature in its development tool called "Break on." You can see this menu item by right-clicking on the DOM node. The trigger condition of the breakpoint can be set to the deletion of the node, any change in the properties of the node, or a change in one of its child nodes.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b360a3-2bfc4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b360a3-2bfc4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?