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
object.setAttribute(sName, vValue [, iFlags])| 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:
|
No return value.
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.
The method is defined in Document Object Model (DOM) Level 2
> 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