Ver Mensaje Individual
  #9 (permalink)  
Antiguo 22/07/2005, 10:06
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 8 meses
Puntos: 5
bueno, en realidad no se si lo que quieres es limpiar el contenido del iframe...bueno, con table no se puede limpiar, por eso te decia que utilizaras span...

chquea esto:

Código HTML:
<script language="javascript">
 function mostrarMenu(cual,que){
  var menu = "";
  menu = menu + "<body style=\"border:0px;background-color: #EEEEEE\">\n"; 
  menu = menu + "<link href=\"http://www.localhost/css/main.css\" rel=\"stylesheet\" type=\"text/css\">\n";
  menu = menu + "<span id=\"menu\">" + que + "<span>\n";
  menu = menu + "</body>\n";
  
  window.frames(0).document.write(menu);
  document.getElementById(cual).className='visible';
 }
 
 function limpiar(obj) {
  var d = document.all;
  obj = eval("d." + obj);
  window.frames(0).document.getElementById("menu").innerText = "";
 }
</script>
<body>
<input type="button" name="Button" value="limpiar" onClick="limpiar('iframe100')">
<table border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
	<td><button onmouseover="javascript:mostrarMenu('iframe100','<tr><td>hola</td></tr>')">mostrar 
	  menu sobre un combo-box</button></td>
  </tr>
  <tr> 
	<td><iframe id="iframe100" class="oculto"></iframe></td>
  </tr>
</table> 
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.