Log in

View Full Version : Opening direction of Overlapping Content script



daCyclist
09-06-2005, 08:55 PM
The script:
http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm

testbed:
http://www.cyclevents.com/test/test3.htm (overlap function tied to "Ride Search" in bottom navigation links)

Is it possible to force the Overlapping Content script to open "upwards" ? I am wanting to use it with "links" that are at the page bottom and it would be nice if it opened upward, so the visitor doesn't have to scroll down to view the content once it opens.

Spinethetic
09-06-2005, 09:28 PM
In your HTML look for:


<DIV id="subcontent2" style="position:absolute; display:none">

and change it to:


<DIV id="subcontent2" style="position:relative; top:200; left:200; display:none">


Just alter the "200"'s of top and left till you get what your looking for

daCyclist
09-06-2005, 11:45 PM
That didn't do the job, as it caused the box to open way down, leaving the visitor to scroll through a bunch of empty space to find the box.

However, you did send me in the right direction . . . after a lot of experimenting, I discovered that if I moved the position:relative; top:200; left:200; to the style specs for the actual box and leave only the display:none in the subcontent style, then it worked.

Thanks for the inspiration.

Spinethetic
09-07-2005, 03:55 PM
Hmm it worked fine for me, but glad you got it fixed anyway. I like how your content is set up on the page too, no extra load times excellent! :)

Best Regards
Spinthetic