Log in

View Full Version : expandable links



elim
05-02-2009, 05:18 PM
ill try and explain this as clearly as i can, currently i have a website with 5 buttons, and on one of the button when i click it, i want it too expand like this

http://i41.tinypic.com/n18haw.jpg

so i can have sub links
i didnt know where to post this, so would appreciate your help

forum_amnesiac
05-02-2009, 05:58 PM
It sounds like you want to have a multi-level type menu.

Have a look at this link, there are a number of them there, you might find one that suits your need.

http://www.dynamicdrive.com/dynamicindex1/indexc.html

elim
05-02-2009, 07:45 PM
how would i configure them to be used with my buttons?

forum_amnesiac
05-03-2009, 08:22 AM
This is an extract from this menu script - http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

It explains how to set images into the menu, if you do not want it as 'rollover' you just use the same image twice.

You set the menu, with images, in the 'exmplmenu_var.js' file as explained in the script details.


// Menu tree
// MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
// For rollover images set "Text to show" to: "rollover:Image1.jpg:Image2.jpg"

Menu1=new Array("Home","http://www.dynamicdrive.com","",0,20,138);

Menu2=new Array("News","blank.htm","",2);
Menu2_1=new Array("General","blank.htm","",5,20,150);
Menu2_1_1=new Array("CNN","http://www.cnn.com","",0,20,150);
Menu2_1_2=new Array("ABCNews","http://www.abcnews.com","",0);
Menu2_1_3=new Array("MSNBC","http://www.msnbc.com","",0);

This may not be what you're looking for but hopefully it is a step along the way.