Click to See Complete Forum and Search --> : newb question


daryl
09-29-2003, 09:41 AM
if i have two scripts and wish to save them in the same *.js file, is it possible, and how should i go about doing it?

don't laugh!:D

pyro
09-29-2003, 09:59 AM
Yes, it is possible. Just make your .js file, and add the scripts to it (minus the <script type="text/javascript"> and </script>). Also, be sure your variables have unique names, or it will cause problems with your scripts. You can then add it to your pages, by adding this:

<script type="text/javascript" src="yourfile.js"></script>

daryl
09-29-2003, 10:01 AM
Hm. Thank You for your reply. I get it now.

Glad you didn't laugh!:D

pyro
09-29-2003, 10:07 AM
:) Happy to help...