| General
Why am I getting an error?
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 7,
Microsoft Explorer 4+ and Opera - this
accounts for about 98% of the browser
market.
Can I use the menu 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.
Why do I get a grey line in the menu
when viewing in Netscape?
The reason here is a missing
clearpixel.gif in the root of your web
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.
Can I use graphics in the menus?
It is possible to add a small graphic
before the menu links. Some of the
templates use text such as "O" but you
can make your own liitle graphic.
PHP Version
If the menu already uses an "O" then
locate
$menuprestr = "O ";
$menupoststr = "";
and replace it with
$menuprestr = "<b>";
$menupoststr = "</b>";
...and add
mymenu.mainpreimage("images/menuimage.gif","",10,19);
mymenu.subpreimage("images/menuimage.gif","",10,19);
...just before
mymenu.netscapeadjust(3,3)
...where menuimage.gif is the the
name of your small graphic and 10,19 is
the width and height of the gif.
Can I see some examples of how the menus
work?
We have a number of templates that
incorporate the DHTML menus, here are
some examples:
- dwvirtualbluepop
- dwvirtualcreampop
- dwvirtualwhitepop
Why do I get a page not found when
linking?
This often happens when you have folders
and subfolders and your link is looking
for a page off the root of your web. The
easy way round this is to make the links
on your menu relative to the root of
your web like this:
mymenu.addSubMenu("instructions", "",
"<b>menu</b>",
"/myfolder/nextfolder/menu.htm")
DHTML 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
blue</b>", 'http://www.ecommercetemplates.com/dwpopoublue/"
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.
How do I get rid of the default help
links and corresponding pop-outs?
Heres an example but the theory is the
same for all the templates using the
DHTML menu.
First delete this line:
mymenu.addSubMenu("main", "", "
HELP", "help.php")
and then all the pop-outs
that it spawns, which will be:
mymenu.addSubMenu("help", "faq", "
FAQ", "#")
mymenu.addSubMenu("help", "tutorials",
" TUTORIALS", "#")
mymenu.addSubMenu("faq", "", "
COMPATIBILITY", "#")
mymenu.addSubMenu("faq", "", " DHTML
MENUS", "#")
mymenu.addSubMenu("faq", "", " DHTML
MENUS", "#")
mymenu.addSubMenu("faq", "", " GRAPHICS",
"#")
mymenu.addSubMenu("faq", "", " LICENSE",
"#")
mymenu.addSubMenu("tutorials", "", "
TEMPLATE SET UP", "#")
mymenu.addSubMenu("tutorials", "", "
INCLUDE PAGES", "#")
mymenu.addSubMenu("tutorials",
"navigation", " NAVIGATION", "#")
mymenu.addSubMenu("navigation", "",
" FP NAVIGATION", "#")
mymenu.addSubMenu("navigation", "", "
DW NAVIGATION", "#")
mymenu.addSubMenu("navigation", "", "
GL NAVIGATION", "#")
|