Hello all,
I am looking for a menu script to generate a menu with Categories/Sub-Categories as DHTML/Javascript tab-outs.
This is for a site where the client changes categories and sub-categories frequently.
I have gone ahead and developed the MySQL table structure for two tables. "category" and "subcategory"
CREATE TABLE category
(
autoid
int(10) NOT NULL auto_increment,
cat_name
varchar(255) default NULL,
PRIMARY KEY (autoid
)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
CREATE TABLE subcategory
(
autoid
int(10) NOT NULL auto_increment,
sub_cat_name
varchar(255) default NULL,
linked_cat
varchar(255) default NULL,
PRIMARY KEY (autoid
)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
First in the back end, the client adds a Category, then goes in and adds a subcategory and links it to the category.
What I want is for the main menu to list the categories, in a vertical table. When a person mouseovers the category, the subcategories would branch out or however.
Any Suggestions as to where I can fine a script to do what I want. Or how to do this. Everything I can think of requires PHP to parse the page, which I do not want it to do for every menu drop.
Thanks in advance
Phil