I have a flash banner that I want to replace with a static image if the clients browser doesn’t have flash enabled.
I was wondering if I can do this with php – or if anyone knows of a good method
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can only do this with javascript, using the
navigator.pluginsinterface. Something like:However, a far more reliable solution that doesn’t require any javascript would be simply to position your fallback image “behind” the flash object so that if the flash doesn’t turn up, the image will show through. You can either put an
<img/>tag inside the flash<object/>or you can put a CSS background-image on the object.