Results 1 to 2 of 2

Thread: Help with Overlapping Content

  1. #1
    Join Date
    Aug 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with Overlapping Content

    Hello all,

    I am having issues with the Overlapping Content script:
    http://www.dynamicdrive.com/dynamici...lapcontent.htm

    When you click on the link for the content to appear, I want to move the content to a different position, I don't want it to remain where it is. I have tried playing with the position of the DIV, but the darn layer won't move when I preview it in the browsers.

    Can anyone please help???

    Thanks

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

    Default

    Well, the two lines that affect the positioning of the overlap content are:

    Code:
    subobj.style.left=getposOffset(curobj, "left")+"px"
    subobj.style.top=getposOffset(curobj, "top")+"px"
    You can add additional offset to either the vertical or horizontal coordinates, such as:

    Code:
    subobj.style.left=getposOffset(curobj, "left")+10+"px"
    subobj.style.top=getposOffset(curobj, "top")+30+"px"

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
  •