PDA

View Full Version : Modifying the Overlapping Content Script



bman
07-14-2007, 10:27 AM
1) Script Title: Overlapping Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/overlapcontent.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

bman
07-14-2007, 03:23 PM
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...

ddadmin
07-14-2007, 10:59 PM
Instead of doing that, try finding the line:


subobj.style.top=ypos+"px"

and change that to:


subobj.style.top=ypos-subobj.offsetHeight+"px"

Not sure if this is what you already did.

bman
07-22-2007, 06:43 PM
That's not exaclty what I did (at first), but I've since changed it. And thanks!