I didnt do a good job of describing my situation. I already have the javascript that you reference below. What I dont have is the ability to load a HTML 5 widget if the user is an IPAD and a flash widget if the user is not. I am trying to avoid making separate pages for IPAD and PCs
thanks James On Dec 9, 9:25 pm, Fabien Auréjac <[email protected]> wrote: > 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 > > athttp://groups.google.com/group/swfobject?hl=en. > > Fabien Auréjac > [email protected] > 0672631545www.laplumesurlatoile.com > skype: fabienaurejac > > plume.jpg > 10KViewDownload > > - Hide quoted text - > > - Show quoted text - -- 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.
