Iframe and divs

wxdqz

New Member
I was using the visibility of div boxes to show text as the mouse went over certain links in another frame. I have since put these frames into an iframe and the code no longer works.
Here is the code:

<script>
function showbox() {
window.top.main.document.getElementById("mainbox").style.visibility = "visible";
}
</script>

where main is the name of the frame in which the text appears, and mainbox is the name of the div box with the text in. Can anyone think why this might be happening?

IxxI
 
Back
Top