+ Reply
Results 1 to 3 of 3
  1. #1
    What's Jailbreak?
    Join Date
    Sep 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Building a wbesite for iPhone...

    Hi all...
    Im building a website for the iphone.. i have a gallery... Now, Im wondering, is there a code where I can keep the page locked on vertical so it doesnt 'turn' when the iphone is turned around? I dont want the site to be viewed when the phone is horizontal.

    Any help is appreciated!!! thx :-)

    -Allison

  2. #2
    iPhoneaholic jakecigar's Avatar
    Join Date
    Aug 2007
    Location
    San Francisco, CA
    Posts
    476
    Thanks
    24
    Thanked 112 Times in 94 Posts

    you can provide alternate page when landscape... but safari will always 'flip'!

    see the 'card' in my signature!
    http://jpassoc.com/x -- with free itunes under the puppy!
    If I help you out, please press THANKS!

    3g QuickPWN'ed with 2.1

  3. #3
    Owner / Founder - ModMyi
    aka poetic_folly
    Kyle Matthews's Avatar
    Join Date
    May 2007
    Location
    Tampa, Florida, United States
    Posts
    8,145
    Thanks
    497
    Thanked 4,462 Times in 1,102 Posts

    You can't stop it from rotating, but you can use Javascript to alter your gallery based on orientation.

    Safari Web Content Guide for iPhone: Introduction to Safari Web Content Guide for iPhone
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts