I want to implement center() effect, but I don't know how to get the
correct widht and height of the browser client. I googled and found
that in (FF) I should use windows.innerHeight and window.innerWidth,
but in msie I could use document.documentElement.clientWidth and
document.documentElement.clientHeight.
I want to know is jQuery has a shortcut function to get that? I write
a simple function to do that:
$.clientCoords = function(){
if(window.innerHeight || window.innerWidth){
return {w:window.innerWidth, h:window.innerHeight}
}
return {
w:document.documentElement.clientWidth,
h:document.documentElement.clientHeight
}
}
--
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/