Hello,
I'm looking for a certain JavaScript/DHTML effect for my website, but I'm not much of a JavaScripter. I specialize mainly in graphic design, (X)HTML, CSS, and lightweight PHP. Anyhow, the effect I'm looking for is a bit hard to explain, so I'll start with giving you a bit about the layout itself to visualize: the navigation for the site is in the form of a horizontal set of icons at the top, within the header. The content for each "page" is in layers, which will be able to slide in and out of the header vertically when the corresponding navigation icon is clicked. All I need basically is a script which will be able to:
a.) When the site initially loads, the index page contentent layer should slide down by default, but without using "body onload()", so that it can remain XHTML 1.0 Strict compliant (body onload() is considered depreciated).
b.) When the user clicks a navigation link, the currently displayed layer should slide up, and the layer corresponding to the clicked link should slide down.
c.) The width of the layers should be able to stretch to the width of the browser window.
d.) An acceleration and deceleration effect on slide would also be great.
The closest thing I can find to what I'm looking for is at http://www.dyn-web.com/dhtml/slide/slide-onclick.html. This example is almost EXACTLY what I'm looking for, only it slides horizontally, and does not appear to be able to be dynamically adjusted to fit the screen width. You can use the code in that example if you'd like, it might be easier just to edit what's there. If you can help, or know of an existing script that can do the above mentioned, I'd greatly appreciate your guidance.
Thanks SO MUCH in advance to any and all who opt to help with this.



Reply With Quote





Bookmarks