I want to use single css drop down menu bar for each page without applying html code for each page separatly.
Return to Recent Questions
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, for
example:
<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 a
server-side script (php, asp, vb, etc.) to generate html pages from
templates on your server.
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
- Sep 05, 2006 - Can I say to deluxe-menu "use wrapping"?
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Sep 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
|