This content has been marked as final. Show 5 replies
you can do an "if browser" if you know the exact browser that only iPhones
"Mac Pizzle" <firstname.lastname@example.org> wrote in message
>I want to make my site browser detect an iPhone so I can steer iPhones to a
>certain web page. Does anyone know how I can do this?
I have found the exact browser info online that it uses. But I'm kind of lame when it comes to the web stuff and know my way around Dreamweaver only a little bit. How do I do an "if browser"? Basically I want to make the "index.html" page on the site determine if someone is browsing my site with an iPhone and then send the iPhone users to "index2.html" and everyone else to "index3.html".
From the research I've done, iPhone uses Safari (mobile?) browser. It's a case of targetting your css for this browser on iPhone only ie. creating a stylesheet that only iPhone will use. You do this by placing the following code in the <head> of your html:
<link media="only screen and (max-device-width: 480px)"
rel="stylesheet" type="text/css" href="iphone.css"/>
more info here:
it seems that iPhone scales web pages to fit in the browser window, so maybe there isn't much you need to modify in the css. I don't think there's any need to create iPhone specific html pages.
> hi my name is mark willbanks,I have the opposite problem with my
> iPhone.Can you
> help me set it up for flashplayer,and reaching web pages such as yours?
iPhone doesn't support flash yet, though it's rumoured to soon.