Log in

View Full Version : Changing Menus - Keeping Rest of Page



questions
09-17-2008, 04:05 AM
I have a menu included with css in a page.
The menu doesn't include all the things I want to show and I need a second menu.
Is there a way to "scroll" or hit a "next" button and have another menu pop in and replace that one.

What I have done temporarily is to make a new page altogether with the new menu. The only thing is, that the new page is an "index2" page and basically takes you totally to the beginning of everything when it loads with the new menu.

Say, for example, someone hit something on the old menu and it is in a "window" above the menu. OK. When they hit "next" and go to the second menu whatever was showing on the page above disappears because the new menu is a totally new page.

I hope this is clear enough so I don't have to post all these pages...

Thanks.

SpOrTsDuDe-Reese
09-17-2008, 09:14 AM
JavaScript probably here. You can have a second menu have display:none; via JS and then use the onclick event handler on the "Next" button calling the 2nd menu. You'd have to change a lot of display:none's though.

Medyman
09-17-2008, 03:07 PM
Yup, either JS or an iFrame (not recommended)

A start:
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

bluewalrus
09-18-2008, 02:36 AM
you could do first menu yada yada yada then
a link saying more which would drop down a second menu
similiar to this http://www.bluewalrus.net/video.html
where the videos pop down under the link.
the java files here http://www.bluewalrus.net/java.js. Then put this
<a href="#" onclick="return toggleMe('para')">More</a><br />
<div id="para2" style="display:none"> Put the rest of the info in here this will be hidden until clicked</div>
Oh yeah i didnt write this but i found it somewhere via google a little while ago.