DHTML menu FAQs

    General

    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.gif. 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.gif 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.gif 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 tags - this includes the path to the .js file. In Dreamweaver set up the menu page, there's no need for the usual or 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.gif 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.

    Drop-Down Menu

    How do I center the menu?
    To centre the menu you'll need to change the width of clearpixel.gif - to move the menu to the right decrease the width of the gif - to move it to the left, increase the width of clearpixel.gif.

    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", " DROP DOWN VIRTUAL CATALOG", 'http://www.thetemplatestore.com/dwvirtualcatalogdropdowns/" target="_blank') Be careful with the punctuation here.

    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.

    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","instructions", "") should have a corresponding section/pop-out name: mymenu.addSubMenu("instructions", "", "menu", "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", "", "virtual mauve", '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","main", "main.htm") where the link is to main.htm, you can change it to mymenu.addMenu("main","main", "#") so you maintain the link color but are not taken anywhere in case anyone tries to click.

Download free webtemplate


Buy professional Website

Dreamweaver Templates
√ FrontPage Templates
√ Expression Web Templates
√ Website Templates
√ CSS Templates
√ Golive Templates
√ Flash/Swish Templates
√ Webmaster Tools



Free Logo

» Download Free Logo
» Buy Logo


Create Free Website

»Create your free website
»Create your free flash website


Other Site


Tutorial