flash y html

Astolfo Hynkel

Miembro
9.880 mensajesdesde 2002
4 agradecimientos
buenas

mi cuñado tiene una tienda, y su hermano le ha hecho un flash para que ponga en su pagina web.

Lo que pasa es que con cualquier editor html si añadimos el flash, luego el iexplorer nos pide confirmación para ejecutar el flash, como si de un activex se tratase.

Como se puede hacer para evitar esto? hay muchas paginas en donde no se pide confirmación para ejecutar flash.

No digais usar firefox por que no es una opción, la pagina se tiene que ver bien en los dos exploradores.

Alguna ayuda compis? :hola
 
Mira que en codigo fuente haya algo como esto:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=770 HEIGHT=420>
<PARAM NAME=movie VALUE="flying_text.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="flying_text.swf" quality=high bgcolor=#000000 WIDTH=770 HEIGHT=420 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>


Es la primera pagina que he encontrado con flash y no pide nada ni en firefox ni en IE. mira si inserta el flash con la etiqueta object o con otra y usa la etiqueta embed tambien. No se cual es la más recomentable, pero esta veo que funciona, creo recordar que podias meter el flash con más etiquetas pero puede que una funcione mejor con firefox y viceversa.
De todos modos mira que versión de IE, ya que de una version a otra cambia mucho lo que puedes ver y lo que no y que en tu configuración no tengas puesto que te avise antes de ejecutar activex.
 
Este problema aparece si tenemos Windows update habilitado, y utilizamos el Internet Explorer.Todo surgió cuando Microsoft perdió una batalla legal con Eolas, por el uso de plugins en páginas web.

www.elpais.com/articulo/internet/cambio/Internet/Explorer/dificulta/interaccion/videos/animaciones/elpportec/20060308elpepunet_4/Tes

de todas maneras, se arregla con un js externo: en la página donde esta embebido tu flash, pon el siguiente código en el <body>.

<script type="text/javascript" src="/js/activateActiveX.js"></script>

Crea en tu sitio una carpeta llamada js y dentro de esta crea un archivo js llamado activateActiveX.js, el código de este archivo es el siguiente:

/*
activateActiveX
---------------
Purpose: Dynamically replace any elements that will be affected by the new security feature in IE6/IE7 that requires a user to click certain types of elements to activate them before use.

Usage: Include this file at the end of your html document using the following...
<script language="JScript" type="text/jscript" src="activateActiveX.js"></script>



Since this script is in response to a software patent lawsuit, I feel it necessary to state the following...

License:
activateActiveX is Copyright (C) 2006 Jason Baker (therippa AT gmail.com). It is available as open source code from:
http://therippa.blogspot.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details http://www.gnu.org/licenses/gpl.html
*/


//Determine browser, we only need this for Internet Explorer
if (navigator.appName == "Microsoft Internet Explorer") {

//Array of elements to be replaced
var arrElements = new Array(3);
arrElements[0] = "object";
arrElements[1] = "embed";
arrElements[2] = "applet";


//Loop over element types
for (n = 0; n < arrElements.length; n++) {

//set object for brevity
replaceObj = document.getElementsByTagName(arrElements[n]);

//loop over element objects returned
for (i = 0; i < replaceObj.length; i++ ) {

//set parent object for brevity
parentObj = replaceObj.parentNode;

//grab the html inside of the element before removing it from the DOM
newHTML = parentObj.innerHTML;

//remove element from the DOM
parentObj.removeChild(replaceObj);

//stick the element right back in, but as a new object
parentObj.innerHTML = newHTML;

}
}
}


Y listo el pollo!

espero te sirva
 
Atrás
Arriba