SubLinks to Links - on same page

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
Cheyenne
Rank III - Intermediate
Posts: 86
Joined: Wed Sep 20, 2006 1:57 pm
Location: CA
Contact:

SubLinks to Links - on same page

Post by Cheyenne »

www.cableguymom.com/occastions

This is a long page to scroll down. I want to attach the different categories ie Good....., Hello.....,Hugs & Have A ....Day, Days of the Week, to a drop down menu from Occasions. I

I want to do this drop down menu on all the pages on my site.

I looked at a couple of websites that have this feature, including John Zeman's, but the commands needed are too far between each other. I know there is a beginning command and a command that needs to be coded to "attach" to each other. I'm really not sure where to look.

Can someone help, please?
John Zeman
Rank III - Intermediate
Posts: 54
Joined: Sat Dec 11, 2004 2:17 pm

Post by John Zeman »

Jeanne on my web site I used the Xara Menu Maker program to create the slide out/drop down menus, it's pretty easy to use and doesn't require a lot of knowledge. It creates all the graphics for you and writes the JavaScript code, all I have to do is to paste the code into my web pages. If you're interested here's the link to the program:

http://site.xara.com/products/menumaker/

John
Cheyenne
Rank III - Intermediate
Posts: 86
Joined: Wed Sep 20, 2006 1:57 pm
Location: CA
Contact:

Post by Cheyenne »

Looking at http://site.xara.com/products/menumaker ... epacks.asp, I already have "Home" "About Us" "Products" "Links" so to speak on my webpage.

Again, looking at the above link, the top row, middle templete.

I want to learn the code to write (as shown) "Menu Text" under "Home"

My website would be "Occasions" instead of "Home" and "Good..." instead of "Menu Text".

Can you or someone help me with this?
John Zeman
Rank III - Intermediate
Posts: 54
Joined: Sat Dec 11, 2004 2:17 pm

Post by John Zeman »

The menu buttons on that Xara template page are just examples. When you use the program you create whatever names you want along with whatever you want for submenus. You can have as many or as few buttons and submenus as you want.

If I were going to use the menu maker on your web site, I would replace the current menu you are using now with the menu maker JavaScript menu bar. You could duplicate your current links and easily add the submenus if you want.

The reason I choose to do it this way is because I really don't want to learn any more JavaScript than I have to, and these menus can get pretty hairy in the JavaScript coding. I have one other program I also use to create JavaScript drop down menus but it's 3 times as expensive and much harder to learn as opposed to the Xara program. On the other hand it's far more powerful as well.

If you don't want to buy a program to build your menus you could grab a free JavaScript script from a place like http://www.dynamicdrive.com/
John Zeman
Rank III - Intermediate
Posts: 54
Joined: Sat Dec 11, 2004 2:17 pm

Post by John Zeman »

Just to follow up since you mentioned my personal web site, the following code is all I have to paste into each of my pages in order to display the buttons and submenus you see there.

Code: Select all

<script src="menus/xaramenu.js" type="text/javascript">
</script> <script menumaker="" src="menus/days.js" type="text/javascript">
</script>
For anyone else following who might be wondering what we're talking about, here's the URL to my personal web site (which is simply about my most recent vacation): http://www.johnzeman.com/
Post Reply