Hello. I'm trying to make my Categories Sidebox appear fixed but only after the user scrolls past the Header. Accordingly, when the user scrolls back to the top, the Categories Sidebox would no longer be fixed. How in the world can this be done?
A certain helpful member of this forum gave me the following code which essentially fixes the Categories Sidebox in place:
#categories {position: fixed;}
As mentioned before, however, I would only like to apply this code when the Header is no longer on the screen. I found two URLs where people have provided sample code to accomplish this very thing- but I'm having trouble applying the code. The first site provides Javascript. But I have no idea how to apply Javascript in Zencart- I imagine it should be in it's own separate file so it doesn't interrupt the delicate PHP. But at the same time it has to work with the CSS. Anyhow, here's the links, I hope someone here can help. Thanks.
http://www.codingforums.com/showthre...75#post1134675
http://www.webdeveloperjuice.com/201...-using-jquery/
Bookmarks