Now I need to work out how to add menu with javascript to a page?
Return to Recent Questions
Q:
Now I need to work out how to add menu with javascript to a page? Are
you able to reference these separately - is this possible.
The page that I am creating lists out notes from our system -
there is a "options" button to the right of each note - when the
cursor hovers over this button I want to dynamically load the
menu's. On any page there could be over a 100 of these "option"
buttons and the menu with javascript that would load from each option button could
be different and specific to the note.
A:
You can add as many menus as you want on the one page.
You should call
<SCRIPT type=text/javascript>var dmWorkPath = "data.files/";</SCRIPT>
<SCRIPT src="data.files/dmenu.js" type=text/javascript></SCRIPT>
and then call your data files:
<SCRIPT src="data.files/data1.js" type=text/javascript></SCRIPT>
<SCRIPT src="data.files/data2.js" type=text/javascript></SCRIPT>
<SCRIPT src="data.files/data3.js" type=text/javascript></SCRIPT>
<SCRIPT src="data.files/data4.js" type=text/javascript></SCRIPT>
> The page that I am creating lists out notes from our system -
> there is a "options" button to the right of each note - when the
> cursor hovers over this button I want to dynamically load the
> menu's.
You can try to use pop up menus
http://deluxe-menu.com/popup-mode-sample.html
You may also generate a menus from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
Return to Recent Questions
Related:
- March 16, 2009 - Is there any way to keep a menu using javascript lit up when going to another page?
- March 19, 2009 - How to get the css javascript menu to highlight and stay on the page you're viewing?
- March 19, 2009 - I need that the dhtml menu creator loads pages into an iFrame.
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using drop menu javascript...
- March 28, 2009 - Is it necessary to add dmWorkPath parameter in the javascript onmouseover menu?
- Apr 10, 2009 - I can not figure out how to fix the html form menu from going off the page in Mozilla...
- Apr 14, 2009 - The page I try to open in css pulldown menu could not found...
- Apr 17, 2009 - I have 25 images on one page. I want to use it's own popup javascript menubar for each image.
- Apr 19, 2009 - Is there a way to set the default menu with css tab on a page load?
- May 08, 2009 - How do I make javascript menu scroll backgrounds and items to override the page text?
- May 15, 2009 - I can see the down arrows of my jump menu javascript on the main page only, how to fix it?
|