iPhone window.onorientationchange Code
Re-posted from devphone.com.
Apple has put up some sample code that shows off the new window.onorientationchange and window.orientation ability that lets you detect the orientation of the iPhone.
You setup your HTML with a body tag with the class of “portrait” or “landscape” and most of the CSS goes from that. You also put an empty div [...]
More: continued here

Leave a Reply
You must be logged in to post a comment.