PDA

View Full Version : request: hide/show div with scroll animation



KaranSokhey
01-06-2007, 01:54 PM
Im looking for a javascript that will hide and show a certian div but when it collapses or expand it scrolls out or in. Similar to how it is on this website: http://www.octavez.com/ I would also want it to only show one at a time, this meaning that if there are 4 divs that can hide/show it will only show one a time. So if the 1st div is open and the user clicks on the 3rd one the first one will collape and the 3rd one will open.

Is there anywhere I can download this script? or is anyone willing to help me with this because Im clueless how to code javascript. *Im also looking for a script that will scroll to the top with animation instead of just jumping to the top of the page*

Thank you for any suggestions/ help.

testcheck27
08-11-2009, 01:09 PM
http://www.askthecssguy.com/2007/02/javascript_triggers_using_a.html
Please check out the same.

It is vary simple as only we have to replace <a href="#" with <span>.:)