Hi guys! I’m using SWFObject 2.0 to embed my swf. Now from what I know, if there is no flash plugin on the user’s computer, then the content put in the alternative ‘div’ tag is displayed. But what I want to do here is to redirect the user to another page if flash plugin is not installed.
I’ve googled it and found this, but it is not working for me. It doesn’t even display the flash content. Any ideas on how it can be achieved.
Also, I’d like to know if you guys are aware any method to disable flash plugin of my browser so that I can test it out. I’m using firefox 3.0. I found flashblock but it is not working. Thanks.
- Exclusive Author
- Author has had an Item Featured
- Author was Featured
- Author had a File in an Envato Bundle
- Has been a member for 5-6 years
- Sold between 100 000 and 250 000 dollars
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Also, I’d like to know if you guys are aware any method to disable flash plugin of my browser so that I can test it out.
If your purpose of test is just to preview the alternative content, then simply enter a higher player version in the code (say “11” ) instead of 8, 9 or 10.
wow…that worked like a charm. Thanks VF. Would love to know if anyone can come up with a solution for redirecting…
havent tried it but if you have some PHP within the div that is displayed when flash player isnt installed you could get that to redirect using header(redirect-url-here)
Not working… That is because the header information is already sent by the time it reached the ‘div’ tag. So it cannot modify the headers!
wow…that is a lot of code… Thanks for sharing though fifty. I’ll definitely find use for it.
no problem . I forgot to mention, that’s the index.html file. For example www.yousite.com has that index.html, and if flash player (the right version) is found the user can be redirected to www.yoursite.com/flash, and if not, to www.yoursite.com/noflash.