PDA

View Full Version : Help with Overlapping Content



nebullaone
05-24-2006, 08:57 PM
Hello all,

I am having issues with the Overlapping Content script:
http://www.dynamicdrive.com/dynamicindex5/overlapcontent.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

ddadmin
05-25-2006, 01:21 AM
Well, the two lines that affect the positioning of the overlap content are:


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:


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