Ver Mensaje Individual
  #15 (permalink)  
Antiguo 30/09/2004, 11:29
furoya
(Desactivado)
 
Fecha de Ingreso: noviembre-2002
Ubicación: Ciudad Autónoma de Buenos Aires
Mensajes: 2.367
Antigüedad: 21 años, 5 meses
Puntos: 317
Hola todos :

tal vez con on objeto

Código:
 
<HTML>
<HEAD>
<TITLE>OBJECT × IFRAME</TITLE>
<script language= "JavaScript">
function ancho(){
obj=document.getElementById("objeto");
obj.style.width="50%";
alert(obj.width+"\r\nwidth");
alert(obj.style.width+"\r\nstyle.width");
}
</script>
</HEAD>
<BODY>
<h2>Muestra un documento dentro de un <tt>object</tt> a modo de <tt>iframe</tt> .</h2>

<object id="objeto" data="www.forosdelweb.com" height=100 width=75%  type="text/html">
</object> 

<input type="button" value="Estilo ancho : 50%.
Ver Ancho." onclick="ancho()">
<p>
<fieldset style='padding:0 10px; border-color:black'><legend> EJEMPLOS</legend>
<pre>&lt;OBJECT ID="UN_OBJETO" HEIGHT=100 WIDTH=200 CLASSID="clsid: ... ">
&lt;/PARAM NAME="width" VALUE="400">
&lt;/OBJECT>
<hr>
&lt;object id="UN_OBJETO" data="UNA_PAGINA.htm" 
style="height:100px; width:200px" type="text/html">
&lt;/object>
<HR>
&lt;object id="UN_OBJETO" data="UNA_PAGINA.htm" 
height=100 width=200>
&lt;/object> </pre>
</fieldset>
</BODY>
</HTML>
saludos

furoya