Results 1 to 4 of 4

Thread: Modifying the Overlapping Content Script

  1. #1
    Join Date
    Jul 2007
    Location
    south florida
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Modifying the Overlapping Content Script

    1) Script Title: Overlapping Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lapcontent.htm

    3) Describe problem: The script is written so that the layer displays BELOW the link. Can it be modified so that the entire layer appears ABOVE the link?

    Any help would be appreciated, and thanks in advance.

    Barry

  2. #2
    Join Date
    Jul 2007
    Location
    south florida
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think I've figured it out...at least it works for me! I simply changed the offsetHeight to a positive number, which moves the above the link.

    Still, if anyone has a better idea...

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Instead of doing that, try finding the line:

    Code:
    subobj.style.top=ypos+"px"
    and change that to:

    Code:
    subobj.style.top=ypos-subobj.offsetHeight+"px"
    Not sure if this is what you already did.

  4. #4
    Join Date
    Jul 2007
    Location
    south florida
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That's not exaclty what I did (at first), but I've since changed it. And thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •