#1
  1. No Profile Picture
    Alyssa
    Guest
    Devshed Newbie (0 - 499 posts)
    I'm trying to get a layer (in Netscape...) to respond to mouse clicks. Currently the text in the layer is a link and what I would like is for another layer to pop up when the link is clicked on (defining the word in the link) The problem is that I can't name each individual layer and use absolute references (there are a too many definitions) so I need to backtrace from the link to the layer it's in. I have no clue how to do this--I can acess the document of the bottom layer but I don't know how to get to the layer above (document.layers.parentLayer does not work)
    Any ideas?
  2. #2
  3. No Profile Picture
    Bjoern
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi there!

    Im not quite sure if this helps but i post it anyway

    As youre trying to popup or hide a layer it would really be a good idea to name it (at least those layers you want to do the tricks with)
    Anyway, if you cant name them would it be possible to pass the info from the anchor you are using to the function?
    i.e.
    <a href="javascript:show_layer(layer_name,layer_on_wich_anchor_was_clicked);"></a>

    Just an idea
    take care
    Bjoern

Similar Threads

  1. layers relative positioning
    By loshdo in forum HTML Programming
    Replies: 0
    Last Post: September 22nd, 2003, 04:23 AM
  2. Problem with multiple layers
    By llebron in forum HTML Programming
    Replies: 3
    Last Post: August 21st, 2003, 05:36 PM
  3. Using onClick with layers to submit a form
    By oldjags in forum HTML Programming
    Replies: 6
    Last Post: August 18th, 2003, 10:35 AM
  4. Making layers visible and invisible
    By kippie in forum HTML Programming
    Replies: 1
    Last Post: August 9th, 2002, 05:54 PM
  5. is this a feature of layers or a bug?
    By Garrett_44 in forum HTML Programming
    Replies: 10
    Last Post: June 6th, 2002, 01:32 PM

IMN logo majestic logo threadwatch logo seochat tools logo