(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:
Best Website Builder for podcasts and affiliate marketing Website Builder for Online Stores, Restaurants, Musicians, Real Estate  |  Website Builder for Beginners, Bloggers, Writers, IT Companies  |  Website Builder for Churches, Authors, Consultants, Magazines  |  Best Website Builder for Digital Marketing Agencies, Travel Agencies, Interior Designs  |  Best Website Builder for Education, Software Companies, Designers, Videos  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Builder | Free AI Website Builder | AI Website Generator | AI web page design generator