Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/02/2006, 07:55
deenver
 
Fecha de Ingreso: febrero-2006
Mensajes: 4
Antigüedad: 18 años, 2 meses
Puntos: 0
El código del iframe es este

El código del iframe es el siguiente. Para la página con las categorías de menu para seleccionar, llamada "pintura.php" es:

"<div id="Layer4" style="position:absolute; left:369px; top:94px; width:646px; height:357px; z-index:105">
<table width="100%" height="100%" border="0" cellspacing="0" bgcolor="#FFCC99">
<tr>
<td><iframe width="100%" height="100%" frameborder="0" name="cont" scrolling="auto">
El teu navegador no suporta iframes i no podr&agrave;s veure borlansa.net. P&agrave;gina optimitzada per a Internet Explorer 4.0
i posteriors, aix&iacute; com Netscape 4.x o superior o el Mozilla Firefox.
</iframe>
</td>
</tr>
</table>
</div>
<div id="Layer5" style="position:absolute; left:0px; top:16px; width:150px; height:80px; z-index:3">
<table width="100%" height="100%" border="0" bgcolor="#99CCFF">
<tr>
<td bgcolor="#99CCFF"></td>
</tr>
</table>
</div>
<div id="Layer6" style="position:absolute; left:149px; top:94px; width:218px; height:357px; z-index:80">
<table width="100%" height="100%" border="0" cellspacing="0" bgcolor="#FFCC99">
<tr>
<td><iframe src="pintura3.php" name="menu"
width="219" height="353" frameborder="0" scrolling="auto">
El teu navegador no suporta iframes i no podr&agrave;s veure borlansa.net. P&agrave;gina optimitzada per a Internet Explorer 4.0
i posteriors, aix&iacute; com Netscape 4.x o superior o el Mozilla Firefox.
</iframe>
</td>
</tr>
</table>
</div>"



Como vemos, en el segundo iframe, correspondiente al nombre "menu" se llama a una página llamada "pintura3.php" que contiene el menu desde el cual se pueden seleccionar las diferentes categorías del apartado de pintura de la página.

El primer iframe, que responde al nombre de "cont", es dónde se debería mostrar cada uno de los álbumes de fotos según la categoría que hayamos seleccionado en el menu. Y también es aquí dónde reside el problema, pues en firefox funciona a la perfección, pero en explorer no... :S

Por lo que respecta a la pàgina "pintura3.php" el código es el siguiente:


"<div id="Layer1" style="position:absolute; left:0px; top:1px; width:210px; height:350px; z-index:1">
<table width="100%" height="306" border="0" cellspacing="0" bgcolor="#FFCC99">
<tr>
<td colspan="4"><div align="center"><span class="Estilo7">SELECCIONA UNA CATEGORIA </span></div></td>
</tr>
<tr>
<td height="21" colspan="4">&nbsp;</td>
</tr>
<tr>
<td height="56"><img src="albums_fotos/ampolles/thumbnails/pintura_img_27_jpg.jpg" width="35" height="53"></td>
<td><span class="Estilo9"><a href="albums_fotos/ampolles/index.htm" target="cont">ampolles</a></span></td>

<td height="55"><img src="albums_fotos/borratxos/thumbnails/pintura_img_35_jpg.jpg" width="35" height="53"></td>
<td><span class="Estilo9"><a href="albums_fotos/borratxos/index.htm" target="cont">borratxos</a></span></td>
</tr>
<tr>
<td><img src="albums_fotos/collage/thumbnails/pintura_img_47_jpg.jpg" width="35" height="53"></td>
<td><span class="Estilo9"><a href="albums_fotos/collage/index.htm" target="cont">collage</a></span></td>

<td><img src="albums_fotos/figura_humana/thumbnails/pintura_img_33_jpg.jpg" width="35" height="53"></td>
<td><span class="Estilo9"><a href="albums_fotos/figura_humana/index.htm" target="cont">figura humana</a> </span></td>
</tr>
<tr>
<td><img src="albums_fotos/flors/thumbnails/pintura_img_45_jpg.jpg" width="30" height="53"></td>
<td><span class="Estilo9"><a href="albums_fotos/flors/index.htm" target="cont">flors</a></span></td>

<td><img src="albums_fotos/paisatge_urba/thumbnails/pintura_img_48_jpg.jpg" width="62" height="37"></td>
<td><span class="Estilo9"><a href="albums_fotos/paisatge_urba/index.htm" target="cont">paisatge urb&agrave;</a> </span></td>
</tr>
<tr>
<td><img src="albums_fotos/tema_lleida/thumbnails/pintura_img_38_jpg.jpg" width="30" height="53"></td>
<td><span class="Estilo9"><a href="albums_fotos/tema_lleida/index.htm" target="cont">Lleida</a></span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div>"


Como se puede observar hay siete categorías en el "menu" que se corresponden a los siete álbumes de fotos y cada una de las categorías lleva en su enlace el comando " target="cont" ", por el cual en el momento que el visitante de la página hiciera clic en alguna de las categorías se debería mostrar tal categoría en el iframe llamado, como hemos visto antes, "cont". Esto se cumple en Firefox, pero no en Explorer como ya he dicho y no entiendo el motivo. Aparentemente todo está bien...

¿Teneis alguna idea? Muchas gracias por contestar "ludovico2000". No sé si existiría algun Javascript que pudiera solucionar la cuestión, pero si se pudiera solucionar únicamente en código html, pues mucho mejor... ;)

Muchas gracias otra vez y hasta pronto!! :p