Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to paste downloaded script

Status
Not open for further replies.

lmj643

Technical User
May 28, 2002
10
US
I have downloaded script for a nav bar but can't get it to work. Where in my site files do I put the files "mmenu.js" and "menu_array.js"? The "array" file is the menu's style. How do I connect these to files to the script below (or is it supposed to happen automatically?) Where do I put this on my page?
<SCRIPT language=JavaScript src=&quot;menu_array.js&quot; type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src=&quot;mmenu.js&quot; type=text/javascript></SCRIPT>



I was shocked by the sudden realization that something was terribly right.
 
>> Where in my site files do I put the files &quot;mmenu.js&quot; and &quot;menu_array.js&quot;?

Somewhere central and easy to get at when you need to change them. Maybe a &quot;resources&quot; folder one notch below your site's root. It really doesn't matter where you put them as long as they are accessible to your pages.

>> How do I connect these to files to the script below (or is it supposed to happen automatically?)

The script below is what connects the files to your HTML pages.

>> Where do I put this on my page?

In between the <HEAD> and </HEAD> tags.

You will need to make sure that the path specified in the src attribute matches the file path to the location where you placed the files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top