I have a website with a flash animation in the header section. The header section (file) is loaded by using a standard PHP include. However, when viewed with an ipad the flash animation does not work. Is it possible to detect the ipad coming into the site and somehow load a different header file without the flash animation? (Don't really want to build an ipad version of the website for such a small issue.)
Totally new to PHP - have only used very basic functions like includes etc.
David Walsh has an article on iPad detection, and shows how to do it in PHP quite simply. Once you've got whether iPad is supported into a boolean, you can just use an if/else statement to load the different headers.
I have a website with a flash animation in the header section. The header section (file) is loaded by using a standard PHP include. However, when viewed with an ipad the flash animation does not work. Is it possible to detect the ipad coming into the site and somehow load a different header file without the flash animation? (Don't really want to build an ipad version of the website for such a small issue.)
Totally new to PHP - have only used very basic functions like includes etc.
Thanks in advance for any help or guidance.
John C
I know I have used Flash as a fallback, but I think you can do vice-verse too with HTML5 video embed... just change the order of the sources.
John C