hi -  first thing you have to find out if the user is viewing the page on an 
iphone. To do this you will need a piece of javascript that can tell you the 
browser user-agent string, if it matches the one from the iphone you re-direct 
the user to a new URL.

Below is a simple way of doing this - you need to put this javacript in the 
<head> section of your HTML document. Then you
can be sure that the script is loaded before the page is displayed.

    <script type="text/javascript" charset="utf-8">
    
        if (navigator.userAgent.match(/AppleWebKit/i) && 
navigator.userAgent.match(/Mobile/i)) {
            window.location.replace('/replaceURL.html');
        }

    </script>

replaceURL.html = the URL you want to redirect to. ( different iphone version 
of the site )

I hope this helps.


> Date: Fri, 23 Nov 2007 12:25:27 -0800
> Subject: Re: iphone specific website
> From: [EMAIL PROTECTED]
> To: iphonewebdev@googlegroups.com
> 
> 
> No I'm wanting to totally create a different iphone version of the
> site, so when the user is on an iphone and they go to my site, it goes
> to a different page, a more simpler version fit to the iphone's screen
> size etc. Thanks for the links, but I honestly do not understand one
> thing in those tutorials. I'm only 16 and I basically only know HTML
> some CSS =/
> 
> On Nov 23, 3:04 am, "∞ | millenomi" <[EMAIL PROTECTED]> wrote:
> > On Nov 22, 10:37 pm, jickpictures <[EMAIL PROTECTED]> wrote:
> >
> > > I'm wanting to make my site, jickpictures.com, work specifically on
> > > iphone, in the way that Bank of America automatically recognizes that
> > > your on an iphone and uses a different style sheet to display things
> > > differently. How do I go about doing this in the easiest way for me to
> > > understand?
> >
> > Given that your site uses Flash, and that your layout seems not to be
> > designed with the iPhone's size in mind, it might require more than a
> > simple stylesheet to make your site accessible to iPhone/iPod touch
> > users.
> >
> > Anyway, Apple's docs go down in detail on the things you can do:
> > <http://developer.apple.com/iphone/devcenter/>. And of course, 
> > <http://www.iphonewebdev.com/>.
> >
> >  - ∞
> 
> > 

_________________________________________________________________
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
http://www.newhotmail.co.uk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to iphonewebdev@googlegroups.com
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