it tilts , but the ads make it ridiculous!

<script type="application/x-javascript">
     addEventListener("load", function()
     {
         setTimeout(hideURLbar, 0);
     }, false);
     function hideURLbar()
     {
         window.scrollTo(0, 1);
     }
</script>

isn't needed  because the other script does it all.

On Nov 25, 2007, at 11:27 AM, AwayBBL wrote:

>
> Can someone please try this...
>
> http://www.myhip.com/yule.html
>
> If it works correctly, when you tilt to another orientation, it should
> show a different image.
>
> the code is this... borrowed some of the comments from above...if you
> see any erros, please let me know
> (I'm currently without device so I can't see if it works)
>
>
> <head>
>   <meta name="viewport" content="width=320; initial-scale=1.0;
> maximum-scale=1.0; user-scalable=0;"/>
> <script type="application/x-javascript">
>    addEventListener("load", function()
>    {
>        setTimeout(hideURLbar, 0);
>    }, false);
>    function hideURLbar()
>    {
>        window.scrollTo(0, 1);
>    }
> </script>
> <script type="application/x-javascript">
>   window.onload = window.onorientationchange = function()
>       {
>       setTimeout(scrollTo, 0, 0, 1);
>       if ( window.orientation == 90 || window.orientation == -90 )
>            {
>            document.getElementById('main').innerHTML = "<img
> src=yule.gif>";
>            }
>       else
>            {
>            document.getElementById('main').innerHTML = "<img
> src=wreath.gif><br>Tilt for Yule Log";
>            }
>       }
> </script>
> </head>
> <body style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM:
> 0px; MARGIN: 0px auto; PADDING-TOP: 0px; BACKGROUND-COLOR: #ffffff"
> border=0 bgcolor="#FFFFFF"  text="#808080">
> <table align=center width=100% height=100% cellpadding=0 cellspacing=0
> bgcolor=black>
>  <tr align=center>
>    <td align=center><div id="main"><img src="wreath.gif"><br>Tilt for
> Yule Log</div></td>
>  </tr>
> </table>
>
>
>
> On Nov 23, 7:02 pm, Randy Walker <[EMAIL PROTECTED]> wrote:
>> Some of the built in apps are portrait only.
>> Even so, I agree letting the user decide is probably the most  
>> friendly
>> thing.  Personally, I don't like most sites in landscape.
>> -=Randy
>>
>> On 11/21/07 7:29 PM, "RobG" <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>>
>>> On Nov 21, 6:26 am, Jake Wolpert <[EMAIL PROTECTED]> wrote:
>>>> the problem with the alert, is when you flip back and forth you  
>>>> queue
>>>> up alerts,
>>
>>>> a special background image on the html tag  would not queue  
>>>> anything
>>
>>> The best solution is that suggested by August: let the user decide
>>> whether to use the page in landscape or portrait.  Any attempt to
>>> force the user to use a particular orientation is a very unfriendly
>>> thing to do.  :-(
>>
>>> If Apple thought forcing an orientation was a good idea, they  
>>> wouldn't
>>> have made the orientation property read-only.
>>
>>> --
>>> Rob- Hide quoted text -
>>
>> - Show quoted text -
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to