PDA

View Full Version : Anylink Vertical Menu



jkimbro01
08-22-2007, 08:53 PM
1) Script Title: "Anylink Vertical Menu"

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/anylinkvertical.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

ddadmin
08-23-2007, 07:29 AM
You should be able to define just an image (instead of a list of links). Inside the script, just do something like:


//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]).

jkimbro01
08-23-2007, 03:34 PM
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?

ddadmin
08-26-2007, 07:28 AM
If all you need is to use an image as the anchor link, you can just do something like:


<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.