Results 1 to 4 of 4

Thread: Anylink Vertical Menu

  1. #1
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Anylink Vertical Menu

    1) Script Title: "Anylink Vertical Menu"

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

    3) Describe problem: Hi,,, I'd like to adapt this script a little. What I would like to do is change what is currently "webmaster links" to a picture. I'd change the picture to a hyperlink of course,,,but what would need to be added/removed to the script to make that work?

    Thanks,,,Jerry

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You should be able to define just an image (instead of a list of links). Inside the script, just do something like:

    Code:
    //Contents for menu 1
    var menu1=new Array()
    menu1[0]='<a href="http://www.javascriptkit.com"><img src="test.gif" /></a>'
    And that's it. Remove the other array elements, so there's just 1 (ie: menu1[0]).

  3. #3
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default one step back

    Thanks for the reply,,,,
    What I'd like to do is change what would be one step back from the actual menu. Right now you mouse over a link and the menu rolls out giving the options. I want to change the original mouse over link to a picture hyperlink. I believe what you sent would change what actually rolls out and not the original link. Does that make sense?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    If all you need is to use an image as the anchor link, you can just do something like:

    Code:
    <a href="default.htm" onMouseover="dropdownmenu(this, event, menu1, '165px')" onMouseout="delayhidemenu()"><img src="something.gif" /></a><br />
    In other words, replace the text with an img tag instead.

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
  •