Helpful Information
 
 
Category: JavaScript Development
JavaScript Funcions Inside a Layer

I can't figure out if I can call a function inside a layer....it doesn't seem as though I can. What I want to do is open a particular navigation menu inside a layer. It's a Javascript function that opens the menu, and I want to have it open inside a layer that I can turn off or on.... but I can't get the layer to show the function....Here's the situation...

<layer id="layer1" bgcolor="red" visibility="show" width="75" height="188">

<script>
window.showMenu(window.mySubMenu8) </script>

</layer>

i'm not sure of your exact situation ... but why do you have the javascrpt inside the layer tag? not that there's anything wrong with that ... it's usually good practice to put it in the head.

you can go to my site and look at the script in the source of the center frame. i use layers and visiblity for rollovers.

beware ... the code is pretty ugly.

------------------
Jaisen Mathai
JMathai.com (http://www.jmathai.com)
jaisen@jmathai.com










privacy (GDPR)