var __NS = (navigator.appName.indexOf("Netscape") != -1) || window.opera; function iecompattest(){ /* Döküman tipine göre IE test */ return (document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body } /* function iecompattest(){ */ function getScrollY(){ /* Scroll Y uzaklığı */ var x = __NS ? pageYOffset : iecompattest().scrollTop; return(x); } /* function getScrollY(){ */ function getScrollX(){ /* Scroll X uzaklığı */ var x = __NS ? pageXOffset : iecompattest().scrollLeft; return(x); } /* function getScrollX(){ */ function getClientW(){ /* Browser ic genislik */ var x = __NS ? innerHeight : iecompattest().clientHeight; return(x) } /* function getClientW(){ */ function getClientH(){ /* Browser ic yukseklik */ var x = __NS ? innerWidth : iecompattest().clientWidth; return(x); } /* function getClientH(){ */ function getElementPos(paramElement, paramDir){ /* elementin sayfadaki yeri - paramDir 'x' / 'y' */ (paramDir=="x") ? pos = paramElement.offsetLeft : pos = paramElement.offsetTop; tempElement = paramElement.offsetParent; while(tempElement != null){ pos += (paramDir=="x") ? tempElement.offsetLeft : tempElement.offsetTop; tempElement = tempElement.offsetParent; } return(pos); } /* function getElementPos(paramElement,paramDir){ */