PDA

View Full Version : Customization for Overlapping Content



1LigerZero
10-03-2006, 02:32 AM
1) Script Title:
Drop down/ Overlapping Content script

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm

3) Describe problem:
Not a problem per se, it's more of me not really knowing how to get my way. <<
So I was browsing through, and I really, really like this overlapping content script, the only thing is I want it to appear above the link as opposed to below it. I don't want it to overlap, basically I just want it to be on the opposite x axis side of the link than the current script. I'm not sure if it's possible, but if someone could show me the way, I'd be eternally greatful.

Thanks for your time,
Nick

ddadmin
10-03-2006, 03:34 AM
Sure thing. Just find the line:


subobj.style.top=ypos+"px"

and change that to:


subobj.style.top=ypos-document.getElementById(subobjstr).offsetHeight+"px"

That should do it.

1LigerZero
10-03-2006, 07:29 AM
Fantastic, it works like a charm.

Thank you a million times over! This is just what I needed! ^_______^