Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/12/2007, 08:32
Avatar de jurupukavy
jurupukavy
 
Fecha de Ingreso: julio-2005
Mensajes: 34
Antigüedad: 18 años, 9 meses
Puntos: 0
Encontré La Solución

Hola Bandit !!!... gracias por tu comentario, busqué con más firmeza en varios lugares y encontré la solución. La comparto para quienes tienen la misma inquietud.

Paso 1: Colocar entre los encabezados <head> ... </head> el siguiente código:

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

Paso 2: Al insertar una película flash usar el siguiente código:

<object type="application/x-shockwave-flash" data="movie.swf" width="780" height="200">
<param name="src" value="movie.swf"/>
<p>Nombre de la película</p>
</object>


Paso 3: Copien el siguiente código en un archivo nuevo y guardenlo con el nombre "embeddedcontent.js"

var jActivating =
{
IS_MSIE : (document.removeNode && document.createAttribute) ? true : false,
TAGS : ['object', 'embed', 'applet'],
activateContent : function()
{
var i = 0;
for(var _tagName; _tagName = jActivating.TAGS[i]; i++)
{
var j = 0;
for(var _node; _node = document.getElementsByTagName(_tagName)[j]; j++)
{
if(jActivating.IS_MSIE)
{
jActivating.reinsertHtml(_node);
}
else
{
jActivating.reinsertNode(_node);
}
}
}
jActivating = null;
},
reinsertHtml : function(_node)
{
var _htmlCode = jActivating.getHtmlCode(_node);
if(_htmlCode)
{
_node.outerHTML = _htmlCode;
}
},
reinsertNode : function(_node)
{
var _clone = _node.cloneNode(true);
var _parent = _node.parentNode;
if(_clone && _parent)
{
_parent.replaceChild(_clone, _node);
}
},
getHtmlCode : function(_node)
{
var _htmlCode = _node.outerHTML;
var _name = _node.nodeName.toLowerCase();
if(_name == 'embed')
{
return _htmlCode;
}
if(_name == 'object' || _name == 'applet')
{
var _startTag = _htmlCode.substr(0, _htmlCode.indexOf('>') + 1);
var _endTag = _htmlCode.substr(_htmlCode.length - 9).toLowerCase();
if(_endTag != '</object>' && _endTag != '</applet>')
{
return null;
}
var _innerHtml = jActivating.getInnerHtml(_node);
_htmlCode = _startTag + _innerHtml + _endTag;
return _htmlCode;
}
},
getInnerHtml : function(_node)
{
var _innerHtml = '';
var i = 0;
for(var _childNode; _childNode = _node.childNodes[i]; i++)
{
_innerHtml += _childNode.outerHTML;
}
return _innerHtml;
}
}
if(jActivating.IS_MSIE)
{
jActivating.activateContent();
}
else if(window.opera)
{
document.addEventListener('DOMContentLoaded', jActivating.activateContent, false);
}



Y listo!!!!! Les puedo asegurar que funciona muy bien. Yo lo he probado.

Disculpen que no les mando el archivo "embeddedcontent.js" zipeado pero no encuentro aquí como adjuntar archivos.

Saludos a todos y suerte!!!
__________________
:-D JuruPukavy