Forum Moderators: open

Message Too Old, No Replies

div slide and go to url

         

Pico_Train

4:35 pm on Dec 4, 2009 (gmt 0)

10+ Year Member



Hi there,

I am using JQuery.

I would like to do this:

If a user clicks a link, a specific div slides up and then the page goes to a new url, old school style, no AJAX, so the address bar changes from say index.htm to about.htm.

Can it be done old school style.

I've tried a few things like onClick and with AJAX but it's not really what I'd like.

Any ideas you can think would be appreciated!

Thanks!

Fotiman

4:42 pm on Dec 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can you clarify what you mean by "a specific div slides up"? Is your intention that this div should remain visible on the new page?

Pico_Train

6:49 am on Dec 5, 2009 (gmt 0)

10+ Year Member



Hi Fotiman, sure thing so you have say horizontal navigation and a div below with all the content.

When a user clicks on a navigation item, the content div slides up as if it is closing and then goes to the url of the item that was clicked. Then when the new page loads, that content div slides down and displays the new content.

Is that better?

Pico_Train

11:39 am on Dec 5, 2009 (gmt 0)

10+ Year Member



Hi got something I quite like, it doesn't slide up after the click but on the page load it slides down and shows the content and that's cool. Can't seem to get the slide up to work but anyway...

Thanks for your help!