/ Published in: Other
Expand |
Embed | Plain Text
<link rel="stylesheet" type="text/css" href="stylesheets/iphone_portrait.css" id="orient_css"> <script type="text/javascript" charset="utf-8"> function orient() { switch(window.orientation){ case 0: document.getElementbyId("orient_css").href = "stylesheets/iphone_portrait.css"; break; case -90: document.getElementbyId("orient_css").href = "stylesheets/iphone_landscape.css"; break; case 90: document.getElementbyId("orient_css").href = "stylesheets/iphone_landscape.css"; break; } } window.onload = orient(); </script> <body onorientationchange="orient();">
Comments
Subscribe to comments
You need to login to post a comment.

And what is the problem by adding just a normal iPhone css?? users will have problems to lead the page? I wonder if this is just an extra detail for be sure that will not be any error.