Results 1 to 6 of 6

Thread: Need help removing 'clickable' menus names in the Apple Style Accordian Menu

  1. #1
    Join Date
    Jun 2010
    Posts
    10
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Need help removing 'clickable' menus names in the Apple Style Accordian Menu

    Hope someone can help, but I just added this beautiful script (Apple Style Accordian Menu) and it works wonderfully. But, I'd like to change the menus names so that they're not clickable, just menu titles. Probably simple but I couldn't find a solution. Removing the individual [a href...] just left me with a white menu and text. Not the answer, as the menus should be either gray or blue.

    Hope someone here can show me how to change this. I'd appreciated it greatly. Thank you.

    1) Script Title: Apple style Accordion Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu-apple.htm

    3) Describe problem: Hope someone can help, but I just added this beautiful script (Apple Style Accordian Menu) and it works wonderfully. But, I'd like to change the menus names so that they're not clickable, just menu titles. Probably simple but I couldn't figure it out. Removing the individual [a href...] just left me with a white menu and text. Not the answer, as the menus should be either gray or blue.

    Hope someone here can show me how to change this. I'd appreciated it greatly. Thank you.

    PS: I added this to the javascript forum before reading the sticky (my apologies)
    Last edited by Raubie; 06-14-2010 at 05:59 PM. Reason: dupe thread merge

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Instead of removing the a href you could just replace the http://.... with #. I guess that would make them unclickable. And if you want to get rid of the pointer you could add cursor:default; in this part of your css .applemenu div.silverheader a {
    Well you can try and see if it works alright.

  3. The Following User Says Thank You to azoomer For This Useful Post:

    Raubie (06-14-2010)

  4. #3
    Join Date
    Jun 2010
    Posts
    10
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Azoomer, that was quick, thank you!

    As you probably guessed, I'm a bit shaky on javascript. So bear with me.

    You said "And if you want to get rid of the pointer you could add cursor:default; in this part of your css .applemenu div.silverheader a {"

    I did that and it did exactly what you said it would do. Thx!

    Referring to your "Instead of removing the a href you could just replace the http://.... with #. "

    I had tried <a href="#">menu title</a>, but this just reloads the page, it doesn't make the menu non-clickable which is my preference. Could you be more specific with this hint/code, it's probably obvious to most except this newbie.

    Thanks again. ~ Raubie
    Last edited by Raubie; 06-14-2010 at 05:56 PM.

  5. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Maybe this one works better ??

    <a href="javascript:void(0)">menu title</a>

    i'm a bit shaky on javascript myself. Just trying to come up with some ideas !

  6. The Following User Says Thank You to azoomer For This Useful Post:

    Raubie (06-14-2010)

  7. #5
    Join Date
    Jun 2010
    Posts
    10
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by azoomer View Post
    Maybe this one works better ??

    <a href="javascript:void(0)">menu title</a>

    OMG, that's simply brilliant.

    I owe you a couple beers (or your favorite libation of choice). Thank you azoomer!

    Mimicking 'Wayne's World', "I am not worthy!"

    ~ Cheers, Raubie

  8. #6
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    azoomer,
    Thought I'd let you know that that snippet of code helped with an unrelated problem I was having as well. The details are here: http://www.dynamicdrive.com/forums/s...Accordian-Menu

    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •