|
I do not want to change every page with the menu each time I need to make changes in onmouseover examples...
Return to Recent Questions
Q:
I have hundreds of pages in my site and I'd like to be able to
use your onmouseover examples on all of them.
I do not want to go change every page with DHTML Menu in the site each time I need to make a some changes in the onmouseover examples.
I want to edit only one file, so the onmouseover examples will change as needed and all the
pages read that file and display the onmouseover examples.
<script type="text/javascript">var dmWorkPath="files/";</script>
<script type="text/javascript" src="files/dmenu.js"></script>
<div id="dmlinks" style="font:bold 9px
Verdana;color:#FFFFFF;text-decoration:none">
<a id="dmI0" HREF="500main.htm">Home</a>
<a id="dmI2" HREF="tixbbs.htm" TARGET="text">For Sale</a>
<a id="dmI4" href="testlink.html">Place Ad</a>
<a id="dmI5" href="testlink.html">Sources</a>
</div>
<script type="text/javascript" src="data-menu.js"></script>
A:
If you don't want to install your onmouseover examples on each page, you can try to use frames, the onmouseover examples has a cross-frame mode.
Please, see more info about cross-frame mode here:
http://dhtml-menu.com/menu/cross-frame-mode-sample.html
Also you can use a server-side script (php, asp, vb, etc.) to generate html pages from templates on your server.
If you change the onmouseover examples parameters only there is no need to change code on each page.
You should only replace your old data file (data-menu.js) with the new one.
Return to Recent Questions
Related:
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using menu with css...
- Apr 05, 2009 - We have status bar errors that say: "Done, but with errors on page" in javascript cascade menu...
- Jun 04, 2009 - I've tried to change the width of the images within the drop down css menu...
- Jun 29, 2009 - I want my javascript drop down menu appears at the top the page with center align. Is it possible?
- Jul 02, 2009 - Is it possible to install my floating menu javascript on the page made with Yahoo sitebuilder
- Jul 07, 2009 - Do I need to replace all the script files in all the web pages with javascript popup code...?
- Aug 06, 2009 - With the licensed .js files of navigation menu code the status bar on IE start shows "Error on page".
- Aug 12, 2009 - I am still struggling with multiple web page menus on one page.
- Aug 15, 2009 - How are this css menu hover compatible with Frontpage 2003?
- Sep 25, 2009 - I have created the javascript drag multiple times but every time it comes up with the error.
- Feb 02, 2010 - When I load a page with java rollover, the first tab is always highlighted.
|