Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/05/2011, 14:39
isabellawebs
Usuario no validado
 
Fecha de Ingreso: diciembre-2009
Ubicación: Bogotá
Mensajes: 462
Antigüedad: 14 años, 4 meses
Puntos: 18
Respuesta: Codigo html para llamar una pagina en un iframe.

Mira, ya lo solucioné, pero lo explico aqui:

focus to unsdrestand.

Yo tenia una redundancia, que me funcionaba, pero era redundancia: Finalmente el servidor por x o y no lo aceptó mas:

Yo tenia el codigo de arriba con esto en el head: <body onload="parent.cargador.location='m1_a.html';"> y esto otro en el body

iframe name="cargador" allowtransparency="allowtransparency" width="730px" height="1500px" src="inicio.html"
scrolling="no" frameborder="0" target="_self">
Su Navegador no está configurado para soportar iframes. Debe consultar con su administrador de sistemas para corregir este error.</iframe></td>

Con esto queria que al abrir inicio.html, con el codigo este del body, me cargara m1_a.html. Pero bueno, el servidor lo rechazó. Entonces probé algo que no habia hecho antes, que era, quitar ese susodicho codigo del head y dejar abajo en el body, la pagina que queria cargar en el iframe de inicio.html que era, pues m1_a.html


Pero no me habia dado cuenta que poniendo la que queria cargar al abrir inicio.html, que era m1_a.html abajo en el body (ver como esta el codigo abajo nuevo) me la cargaba PERO DESPUÉS AL DAR CLIC EN OTRAS PAGINAS, TAMBIÉN ME LAS CARGARÍIA AHI, Y SI SUNCIÓNÓ.

O sea, yo pensabea que si en el body o código del iframe ponia predeterminada m1_a.html, las otras paginas que tenia para el iframe no se iban a cargar, pero si funconó.

Por si les da curiosidad, los links a las paginas iframes estan llamados desde un botón flash. Ya funciona perfecto.

VER EL NUEVO CÓDIGO

Las otras paginas se llaman parecido m2_a.html y asi.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>MIPAGINA</title><link rel="shortcut icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/apoyo.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu-v.css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js"></script>
<script type="text/javascript">
ddsmoothmenu.init({
mainmenuid: "smoothmenu1", //menu DIV id
orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
</script>

</head>
<body>
<div align="center">
<table width="961" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td colspan="2" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="252" height="95" align="center" valign="middle"><a href="home.html"><img src="images/logo.png" alt="oo" width="249" height="70" /></a></td>
</tr>
</table> </td>
<td colspan="2" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="308" height="95" align="center" valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
</table> </td>
<td width="160" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="160" height="95" align="center" valign="middle"><img src="images/yamaha.png" alt="" width="160" height="32" /></td>
</tr>
</table></td>
<td width="14" rowspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="14" height="585">&nbsp;</td>
</tr>
</table></td>
<td width="190" height="47">&nbsp;</td>
<td width="26">&nbsp;</td>
<td width="1"></td>
</tr>
<tr>
<td colspan="2" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/menu.png">
<!--DWLayoutTable-->
<tr>
<td width="215" height="538" valign="top"><div id="smoothmenu1" class="ddsmoothmenu-v">
<ul>
<li>
<div align="right"><a href="home.html">P&aacute;gina Inicio</a></div>
</li>
<li>
<div align="right"><a href="#">YAMALUBE</a>
<ul>

</ul>
</div>
</li>
<li>
<div align="right"><a href="inicio.html">Nuestros Productos</a>
</div>
</li>
<li>
<div align="right"><a href="misvis.html">Misión-Visión</a></div>
</li>
<li>
<div align="right"><a href="preg.html">Preguntas Frecuentes</a></div>
</li>
<li>
<div align="right"><a href="#">Servicio</a>
<ul>
<li><a href="garantias.html">Garantías</a></li>
<li><a href="infogarantias.html">Información de Garantías</a></li>
<li><a href="sertec.html">Servicio Técnico</a></li>
</ul>
</div>
</li>
<li>
<div align="right"><a href="#">o</a>
<ul>

</ul>
</div>
</li>
<li>
<div align="right"><a href="contactenos.html" target="_blank">Cont&aacute;ctenos</a></div>
</li>
</ul>
</div></td>
</tr>
</table></td>
<td height="48"></td>
</tr>
<tr>
<td colspan="5" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="710" height="124" valign="top"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','702','heigh t','124','src','swf/slide_med','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','transparent','movie','swf/slide_med' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="702" height="124">
<param name="movie" value="swf/slide_med.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="swf/slide_med.swf" width="86" height="27" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object></noscript></td>
</tr>
<tr>
<td height="784" valign="top">
<iframe name="cargador" allowtransparency="allowtransparency" width="730px" height="1500px" src="m1_a.html"
scrolling="no" frameborder="0" target="_self">
Su Navegador no está configurado para soportar iframes. Debe consultar con su administrador de sistemas para corregir este error.</iframe></td>

HASTA AQUI ES SUFICIENTE, PUES AQUI EMPIEZA EL IFRAME.