Thanks! :)

On Tue, Oct 20, 2009 at 3:02 PM, Giovanni Battista Lenoci <gian...@gmail.com
> wrote:

>
> 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