Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/06/2010, 14:59
saggas
 
Fecha de Ingreso: noviembre-2007
Mensajes: 66
Antigüedad: 16 años, 6 meses
Puntos: 0
Respuesta: Ubicar iframe creado con función jS

Hola gracias funciono pero otro problema, lo ubico en la div, luego por css ajusto la div asu pocicion pero solo hacepta el margen superior y la div queda pegada al lado izquierdo, probe moviendo por le lado derecho y tampoco.

funcion.

Código:
<script language="JavaScript">
	function crearFrame( lugar) 
	{
		var testFrame = document.createElement("IFRAME");
		testFrame.id = "testFrame";
		testFrame.frameborder="0px";
		testFrame.width="300";  //ancho
		testFrame.height ="100"; // alto
		testFrame.scrolling="no";
		testFrame.src = "contacto.html";
	var control = document.getElementById("testFrame")
		if (control==null)
		{
			document.getElementById("lugar")
			document.body.appendChild(testFrame);
		        return testFrame;
		}
	}  
						
</script>
llamado

Código:
<div id="contaco">
	<a href="javascript: void crearFrame(auto)" > <img src="imagenes/contaco.png" border=0 onmouseover="this.width=70;this.height=64;" onmouseout="this.width=60;this.height=54;" width="60" height="54"   /> </a>
</div>
la div

Código:
<div id="auto">
</div>

CSS

Código:
#ubi{
			margin-top: -250px; 
			margin-left: 350px;
			
	}