dreamweaver templates | responsive designs | frontpage templates | expression web templates | wordpress templates | css templates | website templates

Home > Help files >> DHTML menu FAQ

DHTML menu FAQs

General

- What are the common errors?
- Are the DHTML menus completely cross-browser compatible?
- Can I use the menus in my frames page?
- How do I put the menus in an include page?
- Why do I get a grey line in the menus when viewing in Netscape?
- How do I change the link colours?

Drop-Down Menu

- How do I center the menu?
- How do I open a page in a new window?
- Can the top headings be made to be links?

Pop-Out Menu

- What does "POT menu is undefined" mean?
- How do I open a page in a new window?
- How do I get a text rollover effect if a section name is not a link?

What are the common errors?

If the menu isn't working correctly the first thing to check is that the paths are correct to the .js file and the clearpixel.png. Make sure that section names correspond to sub-section names. Preview the page in a browser to check rather than HTML view in Frontpage or Design View in Dreamweaver. Be sure the browser you are using supports DHTML. The .js file and clearpixel.png must be in the root of your web.

Are the DHTML menus completely cross-browser compatible?

The menus have been tried and tested in Netscape 4.7+ including Netscape 6.1, Microsoft Explorer 4+, Firefox, Safari, Chrome and Opera - this accounts for about 99% of the browser market.

Can I use the menus in my frames page?

As a frameset is made up of separate pages the menu will show on the one page it is placed on and so will not "jump" over the frame to a different page. If you want ease of maintenance an excellent solution would be to use the menu as an include page - see below.

How do I put the menus in an include page?

This is probably the best way to go for the menus - this allows to create just one menu, update it and have all the pages with your menu included to be updated at the same time. The important thing to remember is that the paths to the .js file, the clearpixel.png and of course the URLs should be checked carefully. In Frontpage, the include page function is fairly straightfoward but remember to put all the scripting between the opening and closing <BODY> tags - this includes the path to the .js file. In Dreamweaver set up the menu page, there's no need for the usual <HTML> <HEAD> or <BODY> tags and then choose Menu>Insert>Server Side Include where you want the menu to be included. The parent page will probably need to be renamed to .shtml. You can also use the template or library item feature, and although you won't see the menu while you are design view, previewing in a browser will allow you to see the changes you're making.

Why do I get a grey line in the menus when viewing in Netscape?

The reason here is a missing clearpixel.png in the images folder or possibly the path to the image is wrong.

How do I change the link colours?

The link colours and underlines are determined by the Stylesheet. Changing the Hex values will change the colour of the links.

- Back to top

Drop-Down Menu

How do I center the menu?

To centre the menu you'll need to change the width of clearpixel.png - to move the menu to the right decrease the width of the gif - to move it to the left, increase the width of clearpixel.png.

- Back to top

How do I open a page in a new window?

If you want to make the link open in a new window, look at this example: mymenu2.addSubMenu("examples2", "<b>&nbsp;DROP DOWN VIRTUAL CATALOG</b>", 'http://www.thetemplatestore.com/dwvirtualcatalogdropdowns/" target="_blank')
Be careful with the punctuation here

- Back to top

Can the top headings be made to be links?

Unfortunately there are compatibility issues here with Netscape, MSIE will happily allow you to use the headings as links. One way round it is to make a graphic and placing it before your menu - for example if you just want a home link - another possibility is to have a drop down category called "main" for example and linking main pages from there.

- Back to top

Pop-Out Menu

What does "POT menu is undefined" mean?

This is usually caused by one of two things. It could be that the path to the .js file is not correct or that the section headings don't correspond to the names for the pop-outs. For example a main heading like:
mymenu.addMenu("instructions","<b>instructions</b>", "")
should have a corresponding section/pop-out name:
mymenu.addSubMenu("instructions", "", "<b>menu</b>", "menu.htm")

How do I open a page in a new window?

If you want to make the link open in a new window, look at this example: mymenu.addSubMenu("examples", "", "<b>virtual mauve</b>", 'http://www.thetemplatestore.com/dwpopoutmauve/" target="_blank')
Be careful with the punctuation here

How do I get a text rollover effect if a section name is not a link?

Sometimes it is not necessary to have a section linked, but the section has a number of pop-outs - to keep things tidy instead of having mymenu.addMenu("main","<b>main</b>", "main.htm") where the link is to main.htm, you can change it to mymenu.addMenu("main","<b>main</b>", "#") so you maintain the link color but are not taken anywhere in case anyone tries to click.

- Back to top


Features
News

Frontpage CSS Templates

New section with 100% CSS based XHTML valid Frontpage templates.

Microsoft Expression Web Templates

New section containing templates Microsoft's new Expression Web program.

Dreamweaver CSS Templates

New section with 100% CSS based XHTML valid Dreamweaver templates.

Microsoft Expression Web Templates

New section containing templates Microsoft's new Expression Web program.

Website Templates

We now have a selection of website templates with full PSD source files.

CSS Templates

New range of 100% CSS layouts and XHTML compatible.

read more read more...


Resellers
Check out our reseller program and earn 20% commission on all templates sold through your site - that's over $30 per sale for our ecommerce plus templates.

read more read more...

Affiliate program
5% discount promo

Find us on Twitter

Follow us on twitter

We accept credit card and Paypal paymentsFind us on FacebookFollow us on twitterJoin us on Linkedin

Frontpage Templates | Dreamweaver Templates |  Website Templates |  Expression Web Templates
License + Terms | Privacy Policy | Contact us | Help | Shopping Cart

© 2001 - 2016 The Template Store - All Rights Reserved
Shopping cart software by ecommercetemplates.com