Fr@nC3zW
4th June 2007, 20:50
e bun codu si merge asa cum l-ai scris tu... problema e ca io am o pagina care face legatura intre mai multe iframe-uri si vreau ca butonu (in cazu meu o imagine) sa actioneze dintr-un iframe in altu (asa nu prea mai merge ce mi-ai dat tu)
adica e ceva de genu:
[codebox]<html>
<head>
<title>Main Page</title>
</head>
<body>
<iframe name="top_menu" src="../../iframes/skin=/default/top_menu.html" style="width: 100%; height: 146px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0">
</iframe>
<iframe name="mainframe" id="mainframe" src="../../mainframe.html" width=100% height=1523
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0">
</iframe>
</body>
</html>[/codebox]
ideea e ca butonu sa fie in "top_menu" si sa actioneze asupra "mainframe". Cum il fac ca nu merge daca il las cum ai zis. cred ca trebuie apelat altfel "mainframe" ca document.mainframe.height=2949; nu merge
Fr@nC3zW
5th June 2007, 07:11
gata ma l-am rezolvat. am pus top.document.getElementById("mainframe").height=2949 si a mers. mersi mult