Forum Moderators: open

Message Too Old, No Replies

Menu

         

gavio

12:04 pm on Oct 17, 2006 (gmt 0)

10+ Year Member



Hello!

Don't know if this is the right place, but here goes.

I've created a menu with "UltraMenu" application. It created a ".js" file and some <script></script> code. How can i now (if i can at all) read this <script></script> code from some file. For example, i don't want to have this in my every file, but only in one, and just read it from every other one - so i won't have to insert <script></script> code into my every file when updating the menu.

Hope this makes sence.

Cheers!

penders

9:53 pm on Oct 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Well, it really depends on the script that "UltraMenu" has generated. By the sounds of it (having already generated a "js" file and some <script>) that it is intending you link in the "js" file to every page that needs it, and to include the <script></script> in the correct place within the page to display your menu... but then it does depend on the script. It may be possible to combine the two?

It is possible to just link a "js" file to every page and perhaps have an empty DIV container in the page where you want the menu to go... but whether this will work in your case I don't know.

To know more we'll need to see some code... what is intended to go in the <script>...</script> tags?