I had thought that their would be a way of connecting the Iframe script up with the Show/Hide javascript:
Code:
<script type="text/javascript">
function showonlyone(thechosenone) {
var newboxes = document.getElementsByTagName("div");
for(var x=0; x<newboxes.length; x++) {
name = newboxes[x].getAttribute("name");
if (name == 'newboxes') {
if (newboxes[x].id == thechosenone) {
newboxes[x].style.display = 'block';
}
else {
newboxes[x].style.display = 'none';
}
}
}
}
</script>
...so it's triggered when the Div is clicked?
Code:
if (document.getElementById(id).style.display == "block") {
document.getElementById("main").height +=20) + "px";
else
document.getElementById("main").height -=20px;
}
}
Doesn't really work?
I'll look into an Ajax alternative to iFrames, but it's sorta crucial that i use Iframes.
Thanks
Bookmarks