Aqui lo tienes, es bien sencillo, no creo que los programadores tengan ningun problema en comprenderlo. Lo he hecho utilizando las propiedades del objecto <object> desde DHTML. Es solo para IE, si necesitas que sea crossbrowser habria que mirar alguna funcion similar en la web de netscape. Ya me dir�s.
 
Te pego al final del mensaje sa sintaxis del metodo utilizado (copiado de MSDN)
 
DDT
 
       <% Joseba Alonso Perez %>
        <% Desarrollador  web %>
       <%
www.inproweb.com %>
 

setAttribute Method


Sets the value of the specified attribute.

Syntax

object.setAttribute(sName, vValue [, iFlags])

Parameters

sName Required. String that specifies the name of the attribute.
vValue Required. Variant that specifies the string, number, or Boolean to assign to the attribute.
iFlags Optional. Integer that specifies one or more of the following flags:
0 When the attribute is set, it overwrites any attributes with the same name, regardless of their case.
1 Default. The case of the attribute that you set is respected when it is set on the object.

Return Value

No return value.

Remarks

If the specified attribute is not already present, the setAttribute method adds the attribute to the object and sets the value.

Be careful when spelling attribute names. If you set iFlags to 1 and the sName parameter does not have the same uppercase and lowercase letters as the attribute, a new attribute is created for the object.

If two or more attributes have the same name, differing only in case, and iFlags is set to 0, this method assigns values only to the first attribute created with this name. All other attributes of the same name are ignored.

Standards Information

The method is defined in Document Object Model (DOM) Level 2


----- Original Message -----
From: "Felipe Alonso" <[EMAIL PROTECTED]>
To: "FlashMaestro" <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 10:53 AM
Subject: [flashmaestro] Sustituir swf mediante JS

> Buenos d�as.
> Tengo una duda que me trae de cabeza, bueno, a mi no, porque no tengo ni
> pajolera idea, a los programadores.
> Necesito saber si es posible por medio de javascript cambiar el archivo swf
> por otro en una web.
>
> Por ejemplo, tengo un archivo swf cargado en una p�gina y est� ejecut�ndose,
> al pinchar en un bot�n que est� en la p�gina, no en el swf, quiero cambiar
> ese archivo swf por otro.
> �Se puede hacer esto mediante JavaScript?
>
> Gracias compa�eros del metal!!!
>
> Felipe Alonso
> Administrador de lista FlashMaestro
>
[EMAIL PROTECTED]
>
> ----------------------------------------------------------------------------
> Altas y bajas de la lista en
www.flashmaestro.fm (En un plazo de 24 horas)
> o (inmediata) mediante un e-mail a
[EMAIL PROTECTED] enviado desde la
> cuenta con la que estas en la lista con el asunto en blanco y el cuerpo del
> mensaje el comando subscribe o unsubscribe flashmaestro, envialo como texto
> plano.
> Es *muy* f�cil ;)
> ----------------------------------------------------------------------------
> ----------------------------------------------------------------------------
> -Las normas son necesarias para matener la cordura, por favor, leelas
> (
http://www.flashmaestro.fm/normas.html).
> -No preguntes por cracks, serials o sitios de descarga de software pirata,
> no es el lugar adecuado.
> -Si tienes alg�n problema no dudes en ponerte en contacto con:
> Pedro Moreno
[EMAIL PROTECTED]
> Felipe Alonso [EMAIL PROTECTED]
> --------------------------
>
>

cambio de object.zip

Responder a