Javascript that tells Flash menu to go to a specific frame

  • craig hirshberg
  • Born
  • Born
  • craig hirshberg
  • Posts: 4
  • Loc: Asheville, NC

Post 3+ Months Ago

Hello,

I'm new, but my question hopefully isn't. I've been trying different things for days now.

I've designed a site in Dreamweaver with a Flash menu. I'm trying to write a script to somehow recognize which page has loaded, and therefore, due to some variable or something, the javascript will tell the flash movie to go to a particular frame.

My javascript capabilities are lacking to say the least. I feel I've been down the right road using:

<body onLoad="document.flashmenu.GotoFrame(29);" ...> This worked in IE on PCs only.

I also tried to write a function like this:

<script type="text/javascript" language="JavaScript">

function goHere(){
if (window.location.href=="bios.html"){
document.flashmenu.GotoFrame(29);
}
}
</SCRIPT>

With this in the <body> tags:

<body onLoad="function:goHere()"...>

Does anybody have a clue what I'm trying to do, and if so how, exactly?

I'd like it to work cross-platform/cross-browser if possible. Also, I'd like to make one script that could be placed in all pages via Dreamweaver templates.

Sorry for the ramble. I know what I want, i know I'm close, just can't seem to get there.

Thanks,

Craig
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 13 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.