i tried:
<iframe id="ME" src="http://www.yahoo.com" frameborder=1></iframe>
<script>
function hideElement (element) {
if (element.style) {
element.style.display = 'none';
}
}
function showElement (element) {
if (element.style) {
element.style.display = '';
}
}
var iframe;
if (document.getElementById && (iframe = document.getElementById('ME'))) {
showElement(iframe);
}
</script>
<BR><BR>
<a href="#" onclick="javascript
:hideElement('ME')">XXXXXXXXXXX X</a><BR><BR>
when i click on the link, the iframe will not hide, can you please help me ?
thanks a lot
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:42***********************@newsread2.arcor-online.net...
Mel wrote:
i need to have 2 side by side iframes, a link on top of the one will
show/hide the other
An <iframe> element is an element like others, you can (in browsers like
IE 5+, Netscape 6+, Opera 7+) change its CSS display property e.g.
<iframe id="iframe1" src="whatever.html" ...></iframe>
function hideElement (element) {
if (element.style) {
element.style.display = 'none';
}
}
function showElement (element) {
if (element.style) {
element.style.display = '';
}
}
var iframe;
if (document.getElementById && (iframe =
document.getElementById('iframe1'))) {
hideElement(iframe);
}
--
Martin Honnen
http://JavaScript.FAQTs.com/