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

Mira amigo, prueba con este codigo y dime si te Funciona ;) solo recuerda cambiar las Direcciones jejeje xD

Código HTML:
Ver original
  1. <script language="JavaScript">
  2. function detectarflash(){
  3. flashpage = "flash.htm"
  4. upgradepage = "plugin-flash.htm"
  5. nonflashpage = "html.htm"
  6. cantdetectpage = "no-se-pudo-detectar-plugin.html"
  7.  
  8. noautoinstall = ""
  9. if(navigator.appName == "Microsoft Internet Explorer" &&
  10. (navigator.appVersion.indexOf("Mac") != -1 //
  11. navigator.appVersion.indexOf("3.1") != -1)){
  12. noautoinstall = "true";
  13. }
  14. if (navigator.appName == "Microsoft Internet Explorer" &&
  15. noautoinstall != "true"){
  16. window.location=flashpage;
  17. }
  18. else if(navigator.plugins){
  19. if(navigator.plugins["Shockwave Flash"]){
  20. window.location=flashpage;
  21. }
  22. else if(navigator.plugins["Shockwave Flash 2.0"]){
  23. window.location=upgradepage;
  24. }
  25. else{
  26. window.location=nonflashpage;
  27. }
  28. }
  29. else {
  30. window.location=cantdetectpage;
  31. }
  32. }

y luego cargamos la funcion en el body ;)
Código HTML:
Ver original
  1. <body onLoad="detectarflash()">