Yes, I know, stupid noob question. I'm just getting started in learning web design, and seem to have run into a snag.
I setup a navbar for the site I'm working on (uses mouseover buttons, etc), and noticed that since this navbar appears on every page in the site, it might be a good idea to move the javascript portion to an external file to make things a bit more tidy/efficient.
Basically:
I created a js_files directory, created a navbar.js file, snipped out the code, and pasted into navbar.js.
then, where the code used to be, I did this
which as far as I can tell is correct, but the functions don't work. Help?
I setup a navbar for the site I'm working on (uses mouseover buttons, etc), and noticed that since this navbar appears on every page in the site, it might be a good idea to move the javascript portion to an external file to make things a bit more tidy/efficient.
Basically:
I created a js_files directory, created a navbar.js file, snipped out the code, and pasted into navbar.js.
then, where the code used to be, I did this
which as far as I can tell is correct, but the functions don't work. Help?