It is unlikely that will work. What is likely to work is to put the script on the parent page. Remove the line:
from the script. Then on the page that displays within the iframe make a small script:
Code:
<script type="text/javascript">
window.onload=function(){
parent.fall();
}
</script>
Changing the images depending upon the page loaded in the iframe is a bit trickier. My approach would be to modify the script so that the original images are represented by image objects and add to the main script on the parent a function to change the images with a single command issued from the child frame. Let's get the first part (activating from the iframe document) working first.
Bookmarks