Submenu

  • Allied77
  • Beginner
  • Beginner
  • Allied77
  • Posts: 40

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

You'll need to use javascript. CSS doesn't have an onClick attribute, only hovers.
  • Allied77
  • Beginner
  • Beginner
  • Allied77
  • Posts: 40

Post 3+ Months Ago

neksus yer like my personal Mr. Miyagi :)

Thanks once again for helping me out!

Will search one out!
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

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
  • Allied77
  • Posts: 40

Post 3+ Months Ago

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

Post 3+ Months Ago

I've PMed you some more relevant info :)
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

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.
  • Allied77
  • Beginner
  • Beginner
  • Allied77
  • Posts: 40

Post 3+ Months Ago

Thanks to you both! Totally sorted on that now! :)
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

No problem :) Glad you got it figured out :D
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

I sent him a link that was pretty much what he was looking for - now he'll just have to position his divs :)
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Why not share it as others may need the same fix? Unless it's private...
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

It's not really private, it was just a reference to another site.
http://www.garryschriml.com for those interested :P
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

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:
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

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

Post 3+ Months Ago

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

Nice rug.. lol
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

hahaha
Looking at the use of divs, not the hair :P

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 35 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.