// JavaScript Document myDebug.line=1;try{ var script_screen='js:screen',screen_stop=1; alert("ljs:6 - "+script_screen); jsscriptslist=jsscriptslist.concat(new Array(script_screen)); myDebug.checkjsload(script_screen); tagfct = {kjsfile:script_screen,kjsline:myDebug.line,kjsfct:'load: '+script_screen,kjsstop:screen_stop}; //tagfct.kjsfct='load: '+script_particular; //tagfct.kjsfile=script_particular;tagfct.kjsline=myDebug.line;tagfct.kjsstop=particular_stop; ///}catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} /* @author Patrick Poulain @see http://petitchevalroux.net @licence GPL http://dev.petitchevalroux.net/javascript/connaitre-position-element-javascript.163.html */ function getPosition(element){ myDebug.line=18;try{ tagfct = {kjsfile:script_screen,kjsline:myDebug.line,kjsfct:'getPosition(element)',kjsstop:screen_stop}; ////myApp.line=9;try{ var lefto=0,topo=0,left=0,top=0; /*On récupère l'élément*/ var e=(element?element:document.getElementById(element)); /*Tant que l'on a un élément parent*/ while(e.offsetParent!=undefined&&e.offsetParent!=null) { /*On ajoute la position de l'élément parent*/ lefto=e.offsetLeft; topo=e.offsetTop; left+=lefto+(e.clientLeft!=null?e.clientLeft:0); top+=topo+(e.clientTop!=null?e.clientTop:0); e=e.offsetParent; } return(new Array(left,top,lefto,topo)); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){debug_view_e_catch(e,'screen-d:getPosition(element)',myApp.line);} }//c function getPosition(element) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function get_segment_position(number,width,position){ myDebug.line=40;try{ tagfct = {kjsfile:script_screen,kjsline:myDebug.line,kjsfct:'get_segment_position(number,width,position)',kjsstop:screen_stop}; var taille=parseInt(width/number); for(var i=1;i<=number;i++)if(position