Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/11/2015, 17:58
el_loco90
 
Fecha de Ingreso: julio-2012
Mensajes: 234
Antigüedad: 11 años, 9 meses
Puntos: 9
Respuesta: Redireccionar flash

No funciona amigo
Te muestro como lo hice
(Dentro del HTML principal donde se aloja el movie flash)

<head>
Código Javascript:
Ver original
  1. <script language="JavaScript">
  2. function detectarflash(){
  3. flashpage = "webinicial.html"
  4. upgradepage = "webinicial.html"
  5. nonflashpage = "html.htm"
  6. cantdetectpage = "errorflashredirect.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. }
  33. </script>
</head>

y
<body>
Código HTML:
Ver original
  1. <body onLoad="detectarflash()" bgcolor="#000000">
</body>

Gracias.!!!