you can detect it by performing a regular expression on the userAgent given 
string
exemple for ipad ipod and iphone:
<script type="text/javascript">
if((navigator.userAgent.match(/iPhone/i)) || 
(navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/iPod/i))) {
   window.location = "http://htmlonly.yoursite.com/";;
}
</script>
best regards

Fab
Le 10 déc. 2011 à 00:02, [email protected] a écrit :

> I currently have a website designed that formats well on PC Desktops
> and IPADs. My problem is I would like to use Java Script to detect
> IPAD, IPOD and load an HTML 5 player instead of the flash player. I am
> using the widgets at Soundcloud. I want to use the Flash Player unless
> I detect IPAD/IPOD.
> 
> Is this possible, if so can you give me sample code.
> 
> Thanks in advance
> 
> James
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "SWFObject" 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/swfobject?hl=en.
> 

Fabien Auréjac
[email protected]
0672631545
www.laplumesurlatoile.com
skype: fabienaurejac


<<inline: plume.jpg>>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" 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/swfobject?hl=en.

Reply via email to