Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick DIV question...

Status
Not open for further replies.

oldnewbie

Technical User
Dec 6, 2000
9,142
CA
Hi!

How do I access a variable in a division, from the html's main layer? Do I refer to the division's name?

Thanks!
 

A variable in a division? What? It shouldn't matter where the JavaScript variable is, you reference it by name.

If you'd like more info, please provide more info.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
lol! Let me try to rephrase that... I'm not very familiar with javascript so....
This is the deal...

I have this Flash movie embedded in a division above some presently empty html content. I've succedeed with onMouseOver & onMouseOut events, in detecting if the mouse is over the Flash movie or not... And in doing so, have also managed to close the lower navigation bar (hover over the bottom of the Flash movie...), that wasn't closing when the mouse left the Flash movie from the bottom or from the sides of that navigation bar, because it can't be detected from within the Flash movie itself. That all works fine!
What I'm now after, assuming I wasn't using that MouseOver & MouseOut detection, would be to use an onMouseDown event (on what I called the main layer...) to achieve the same result, which is closing that navigation bar when the body layer is clicked upon. I've set up an alert when the mouse is clicked and that works fine, but if I try to call the same function the onMouseOver & Out were calling, I only get a javascript undefined error, as though the "flashfile" id was not found, since it refers to a Flash movie embedded in another division...

Starting to make more sense? Hope it does! Any thoughts?

Heres the link...


Thanks.

PS: I happen to know a couple named Lois & Peter... Thing is my Peter doesn't drink, nor as he ever! You're footer just made me laugh!
 
No takers? [ponder]
In fact my question is...

How can you target a Flash object embedded on a higher division, from the main layer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top