cachobong ha scritto:
How do i use a function like this?

$.clientCoords = function() {
             var dimensions = {width: 0, height: 0};
             if (document.documentElement) {
                 dimensions.width = document.documentElement.offsetWidth;
                 dimensions.height = document.documentElement.offsetHeight;
             } else if (window.innerWidth && window.innerHeight) {
                 dimensions.width = window.innerWidth;
                 dimensions.height = window.innerHeight;
             }
             return dimensions;
        }


$.clientCoords()

:-)

Bye

--
gianiaz.net - web solutions
via piedo, 58 - 23020 tresivio (so) - italy
+39 347 7196482

Reply via email to