Difference between revisions of "Team:Pasteur Paris/Notebook"

Line 62: Line 62:
 
   //var n = ((texte.length)/45)+2;
 
   //var n = ((texte.length)/45)+2;
 
   var element = document.getElementById(id);
 
   var element = document.getElementById(id);
 
+
   var bottomLeftX = element.offsetTop + element.offsetHeight;
   var width = element.width();
+
 
   alert(id);
 
   alert(id);
  var height = element.height();
+
 
  var position = element.position();
+
  var bottomLeftX = position.left;
+
  var bottomLeftY = position.top + height;
+
  var bottomRightX = position.left + width;
+
  var bottomRightY = position.top + height;
+
 
    
 
    
  //Lnx=bottomLeftX;
 
  //Lny=;
 
 
   alert(bottomLeftX);
 
   alert(bottomLeftX);
 
   n=5;
 
   n=5;

Revision as of 09:47, 8 September 2015

Notebook

Search for a content: