|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can I use Javascript to detect whether the browser supports Flash, and if not redirect to another site. This could be done in either Javascript (prefered), or using server side scription (ASP, PHP, etc.) Any site with an article would be cool!
Cheers, |
|
#2
|
|||
|
|||
|
Check out http://javascript.internet.com/user...age.html#source
The section on check plugin redirect says: <!-- ONE STEP TO INSTALL PLUGIN PAGE: 1. Add the first code to the BODY of your HTML document --> <!-- STEP ONE: Add the first code to the BODY of your HTML document --> <BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Mattias Jonsson (gt96mjn@blg.du.se) --> <!-- Web Site: http://www.du.se/~gt96mjn --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin var plugin=navigator.plugins["Shockwave Flash"]; if (plugin) { window.location=('http://www.page.with.plugin.com'); } else { window.location=('http://www.page.without.plugin.com'); } // End --> </script> <p><center> <font face="arial, helvetica" size="-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size: 0.72 KB --> Adam M adam@chamele.com |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Flash detection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|