Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Javascript Drop Down Menu

  • 23-03-2004 11:06pm
    #1
    Registered Users, Registered Users 2 Posts: 2,170 ✭✭✭


    Hey,

    I'm looking for a Javascript drop down menu that will trigger off images rather than divs. I have had a look through a lot of the Navaigation scripts on Hotscipts.com but they all seem to trigger off of the <div> tag. The site I have has already been built with 4 images at the top as navs, and inserting a <div> anywhere will break the flow since it is a block level element. Anyone know of any scripts that trigger off an image with an id?

    The only other criteria is that is must be relative positioning. It would be nice if it supported a second level too :)

    Many thanks for any replies.


Comments

  • Closed Accounts Posts: 304 ✭✭Zaltais


    It should be easy enough to do by butchering one of the many scripts you've already found.

    However, what may be easier (albiet less cross-browser friendly) is to use the script you've found that uses divs and either change it so it uses spans instead or change your div's so they're not block level elements any more

    [php]
    <div style="display: inline"><img></div>
    [/div]

    If memory serves I've seen a javascript works well with horizontal image bars, but I think the link to it is in work. If nobody's posted a better solution before then, I'll take a look in work for you tomorrow.


  • Registered Users, Registered Users 2 Posts: 1,746 ✭✭✭pork99


    I found this very helpful

    http://www.alistapart.com/articles/dropdowns/

    not exactly what you are looking for but I have found it very adaptable


  • Closed Accounts Posts: 304 ✭✭Zaltais


    This is the one I was thinking of:

    http://www.milonic.com/

    this may be specifically what you were looking for:

    http://www.milonic.com/menusample18.php

    It's not free though....


  • Registered Users, Registered Users 2 Posts: 2,170 ✭✭✭Serbian


    Hey guys,

    Thanks for the replies. A couple of minutes after posting this thread I found a cheap'n'easy menu. The List Apart menu is a great one, and I did consider implimenting it, but have decided to go with the one above. Took me about 5 minutes to get it behaving exactly as I wanted it to.

    One problem however, it doesn't work properly in IE 5.2 for the Mac. I have tested it on Safari on the Mac, and IE5+ on Win, and FireFox 0.8. If anyone else notices problems with it in other browsers let me know ;)

    Once again, thanks for the replies, you have been very helpful.


  • Closed Accounts Posts: 989 ✭✭✭MrNuked


    coolmenus are good DHTML menus...available free from dhtmlcentral I think. Google if interested.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,746 ✭✭✭pork99


    Just to say in support of the alistapart.com dropdowns that if you are interested in your site's accessibility it is very good because its mostly based on CSS with the minimum of Javascript, about 12 lines of Javascript code compared to at least 10 times that in other drop downs.


Advertisement