Recent Questions
Q: Here is a snapshot from the javascript drop down menu:
["admin","/Main/Administration.asp", "", "", "", "", "1", "", "", ],
["|test1","http://www.vg.no", "", "", "", "", "0", "0", "", ],
["|test2","/Main/Setup.asp", "", "", "", "", "0", "0", "", ],
If I click on test1 which is a Norwegian newspaper, it works.
But it I click on test2 which is a link to my page – it does not work.
A: You cannot use "" symbols within menuItems. It is not correct.
Try to write your javascript drop down menu items in the following way:
["admin","/Main/Administration.asp", "", "", "", "", "1", "", "", ],
["|test1","http://www.vg.no", "", "", "", "", "0", "0", "", ],
["|test2","/Main/Setup.asp", "", "", "", "", "0", "0", "", ],
Q: I want to use single css drop down menu bar for each page without applying HTML Code for each page separatly.I mean to use CSS Menu as per our .JS Menu.
A: Unfortunately it is not possible with css menu.
On each page you should call css file with styles:
<link href="menu.css" rel="stylesheet" type="text/css" />
and add code for the menu on each page in the place where you want to have a menu, forexample:
<ul class="cssMenu cssMenum">
<li class=" cssMenui"><a class=" cssMenui" href="testlink.html">Home</a></li>
<li class=" cssMenui"><a class=" cssMenui" href="#"><span><img class="def" src="default.files/icon1.gif"/>
<img class="over" src="default.files/icon1o.gif">Product Info</span>
<![if gt IE 6]></a><![endif]><!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class=" cssMenum">
<li class=" cssMenui"><a class=" cssMenui" href="testlink.html"><img class="def" src="default.files/icon2.gif"/>
<img class="over" src="default.files/icon2o.gif">Features</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->lt;/li>
<li class=" cssMenui"><a class=" cssMenui" href="testlink.htm">
<img class="def" src="default.files/icon1.gif"/>
<img class="over" src="default.files/icon1o.gif">Contact Us</a></li>
</ul>
You can also try to use frames.
Also you can use aserver-side script (php, asp, vb, etc.) to generate html pages fromtemplates on your server.
Q: When I open my site in Internet Explorer 6.0 The main menu showsup nicely but the drop-down sub-menus are separated. The menu work very nicely in a Firefox browser but not in IE.
A: There are some problems also with your css.
The problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "position" attribute of the object if the object doesn't have this property within inline style(style="position:relative"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
You should add style="position:relative;"
to the
<DIV id="right">
So, you'll have:
<DIV id=right style="POSITION: relative;">
Check that.
Q: How do I make the main nav links align left in my horizontal menu (they are center aligned).
A: Try to use the following parameter:
var itemAlignTop="left";