(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I wish to put a script java menu on every page of my site - through all the folders etc.

Return to Recent Questions


Q: Just wondering if you could help. I wish to put a script java menu on every page of my site - through all the folders etc.
How do I set it so that they all 'feed' from the same dmenu.js file?
How do I set the file path to that file from all pages of my website?



A: 1) How do I set it so that they all 'feed' from the same dmenu.js file?
You should use absolute path here:

1. Paste the following code into a tag of your page:

<!-- Deluxe Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript">var dmWorkPath = "http://site.com/menudir/";</script>
<script type="text/javascript" src="http://site.com/menudir/dmenu.js"></script>
<!-- (c) 2009, http://deluxe-menu.com -->

2. Paste the following code where you want to have the menu:

<script type="text/javascript" src="http://site.com/menudir/data.js"></script>

2) How do I set the file path to that file from all pages of my website?
If you don't want to create your menu on each page, you can try to use frames, the menu has a cross-frame mode.
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:
Bootstrap Radio Set Bootstrap Sidebar Dropdown  |  Bootstrap Offset Usage  |  Bootstrap Clearfix Style  |  Bootstrap Columns Mobile  |  Bootstrap Menu Responsive  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | AI Website Generator | Website Generator AI | AI web design generator | AI website design generator