#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Cambridge, MA 02138
    Posts
    2
    Rep Power
    0
    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>
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Novi, MI, US
    Posts
    7
    Rep Power
    0
    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
    jaisen@jmathai.com

Similar Threads

  1. javascript string manipulation (modifying chars inside a string)
    By Matthew Doucette in forum JavaScript Development
    Replies: 4
    Last Post: September 9th, 2003, 08:15 AM
  2. placing PDF inside Layer
    By metro in forum HTML Programming
    Replies: 3
    Last Post: July 24th, 2003, 10:27 AM
  3. calling a javascript function inside of a jsp
    By The Rocket in forum JavaScript Development
    Replies: 1
    Last Post: July 1st, 2003, 06:45 PM
  4. layer background image javascript
    By dirtybbq in forum JavaScript Development
    Replies: 2
    Last Post: June 1st, 2003, 08:30 PM
  5. changing layer properties in Javascript
    By minaz in forum JavaScript Development
    Replies: 3
    Last Post: July 16th, 1999, 12:20 AM

IMN logo majestic logo threadwatch logo seochat tools logo