Submenu

  • Allied77
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Apr 17, 2008
  • Posts: 40
  • Status: Offline

Post April 20th, 2008, 4:46 am

Hey all,

more questions from me :P

Looking for a submenu from my website. One that will show the sub menus on a mouse click and keep them there til the the next one is clicked(i.e. not dissapear if you move the mouse down the screen). anyone know what kind of menu I need? It'll go into the black bar under the main menu here: http://hem.bredband.net/allied/index2.htm

Is there a way to do this in css or do I need a javascript for it?

thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 20th, 2008, 4:46 am

  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 20th, 2008, 9:36 am

You'll need to use javascript. CSS doesn't have an onClick attribute, only hovers.
  • Allied77
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Apr 17, 2008
  • Posts: 40
  • Status: Offline

Post April 20th, 2008, 9:44 am

neksus yer like my personal Mr. Miyagi :)

Thanks once again for helping me out!

Will search one out!
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 20th, 2008, 9:58 am

No problem :)
The easiest way is going to be to have your link do a state change on the menu you want displayed when the parent button is pressed, and use the CSS display:none/display:inline to either show it or hide it.
  • Allied77
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Apr 17, 2008
  • Posts: 40
  • Status: Offline

Post April 20th, 2008, 10:34 am

So find a js that'll handle a state change, then do the rest in css?
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 20th, 2008, 4:15 pm

I've PMed you some more relevant info :)
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 20th, 2008, 4:29 pm

http://www.javascriptkit.com/script/scr ... ltab.shtml

That thing does what you want. It does it onmouseover thing but it stays and doesn't change if you move your mouse down... THe CSS for it is already provided in there... all you have to do is edit it a bit.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Allied77
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Apr 17, 2008
  • Posts: 40
  • Status: Offline

Post April 20th, 2008, 4:44 pm

Thanks to you both! Totally sorted on that now! :)
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 20th, 2008, 5:04 pm

No problem :) Glad you got it figured out :D
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 20th, 2008, 5:14 pm

I sent him a link that was pretty much what he was looking for - now he'll just have to position his divs :)
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 20th, 2008, 5:42 pm

Why not share it as others may need the same fix? Unless it's private...
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 20th, 2008, 7:44 pm

It's not really private, it was just a reference to another site.
http://www.garryschriml.com for those interested :P
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 20th, 2008, 8:32 pm

neksus wrote:
It's not really private, it was just a reference to another site.
http://www.garryschriml.ca for those interested :P

You mean the site that doesn't open for me? :lol:
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post April 21st, 2008, 12:38 pm

Hmm me either, the link should read
http://www.garryschriml.com :D
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Joined: Oct 02, 2007
  • Posts: 575
  • Loc: Phoenix, AZ
  • Status: Offline

Post April 21st, 2008, 1:26 pm

neksus wrote:
Hmm me either, the link should read
http://www.garryschriml.com :D

Nice rug.. lol
phoenix web design
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 21st, 2008, 1:26 pm

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 66 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.