Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/11/2015, 19:16
Avatar de AngelKrak
AngelKrak
 
Fecha de Ingreso: noviembre-2014
Mensajes: 917
Antigüedad: 9 años, 5 meses
Puntos: 91
Respuesta: Redireccionar flash

Prueba con esto y dime que tal amigo ;)

Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <meta charset="UTF-8">
  4.     <title>Document</title>
  5.     <script type="text/javascript">
  6. function detectarflash(){
  7. flashpage = "flash.htm"
  8. upgradepage = "plugin-flash.htm"
  9. nonflashpage = "html.htm"
  10. cantdetectpage = "no-se-pudo-detectar-plugin.html"
  11.  
  12. noautoinstall = ""
  13. if(navigator.appName == "Microsoft Internet Explorer" &&
  14. (navigator.appVersion.indexOf("Mac") != -1 &&
  15.     navigator.appVersion.indexOf("3.1") != -1)){
  16. noautoinstall = "true";
  17. }
  18. if (navigator.appName == "Microsoft Internet Explorer" &&
  19. noautoinstall != "true"){
  20. window.location=flashpage;
  21. }
  22. else if(navigator.plugins){
  23. if(navigator.plugins["Shockwave Flash"]){
  24. window.location=flashpage;
  25. }
  26. else if(navigator.plugins["Shockwave Flash 2.0"]){
  27. window.location=upgradepage;
  28. }
  29. else{
  30. window.location=nonflashpage;
  31. }
  32. }
  33. else {
  34. window.location=cantdetectpage;
  35. }
  36. }
  37. </head>
  38. <body onLoad="detectarflash()">
  39. </body>
  40. </html>