PDA

View Full Version : Jumping Frames! YAY!



ANEWIDEACo
October 27th, 2007, 03:33 AM
Hey! How do I write a path for this code from about_us.html to nav.html:


<script language = "JavaScript"><!--
function PassFlash(){
window.document.ani_header.SetVariable("movie", "3");
}
//-->
</script>about_us.html is on "mainframe" while nav.html is on "navframe".

Thanks in advance!

ANEWIDEACo
October 27th, 2007, 12:44 PM
I think I figured it out, but I stink at JavaScript and have syntax errors. I think... cause it still doesn't work.

nav.html "navframe"

<script language = "JavaScript"><!--
function PassFlash(){
window.document.ani_header.SetVariable("movie", +page+);
}
//-->
</script>

about_us.html "mainframe"

<script language = "JavaScript"><!--
var page = top.navframe."3"

//-->
</script>

If you see the problem or have any suggestions, please don't hesitate to tell me. Thanks!