Me

No User

You must log in to access your account.

iPhone Software Developers Group

Group Avatar

Group avatar

Admins

← Forum

  • ← Group Forum | Forum Topic Directory

    Portrait or Landscape? (2 posts)

  • Avatar Image admin said 2 years, 5 months ago:

    Greetings, fellow adult webmasters

    Question of the day: Portrait or Landscape?

    I originally designed my primary site in portrait mode, which is 320 wide and vertically scrolling but now am starting to reconsider if I should have designed it for horizontal viewing?

    I have built up a test page, to demo the difference between the two modes, and also test some javascript rotation detection script I have found online. The test page can be viewed at the following url:

    http://mobile.prisonbang.com/

    If you are on an iPhone or iPod touch, by rotating the device you can see both layouts, if you are on a desktop system you can click the rotate demo button at the bottom.

    The script takes advantage of the "onorientationchange" event, and calls a function to detect "window.orientation", which is a value between -90, 0, 90, or 180. This is detectable on the Android browser, in the emulator, but doesn't have the "onorientationchange" event, so I'm looking for a way to detect Android device rotation and will be adding that into a new test page soon.

    Looking forward to other peoples thoughts and feedback,
    Brad

  • Avatar Image Goldy said 2 years, 5 months ago:

    I'm not sure using is good for G. Else double content in your page, like logo images. In you have text in page they will be duplicate.

    May be use different page is good practice: index.php and index_landscape.php

    Spankmo have great example for different screen resolution
    look at here http://awolmobile.com/
    Sorry for my English.