Preserved Topic: Importing javascript like a stylesheet. |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Drammen, Norway |
posted 09-24-2000 20:06
I am cleaning up the coding on my site, and wondered if it is possible to save a mouseover script in the same way as you do with stylesheets. I have the same interface on all my pages, and the script is exactly the same on every page. Is it possible to have the script on only one of the pages, and link to it on the another pages? |
Bipolar (III) Inmate From: Drexel Hill, Pennsylvania |
posted 09-24-2000 21:05
Copy and paste the code into a program like notepad, and save it as code.txt or something that you can easily identify, but make shure it has a .txt extention. upload the file to your server |
Bipolar (III) Inmate From: Drammen, Norway |
posted 09-24-2000 21:06
Thaks a lot. That was the answer I was hoping for. Finally my coding will look nice <img border=0 align=absmiddle src="http://www.ozones.com/forum/smile.gif"> |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 09-24-2000 21:06
why use include when you could use the .js extention and call it from that. |
Bipolar (III) Inmate From: Drammen, Norway |
posted 09-24-2000 21:58
Please explain. I tried saving the script as a JS file and do I that way, but it did'nt work. At least not in Frontpage. Maybe it would work from the server. |
Maniac (V) Mad Scientist From: Mi, USA |
posted 09-24-2000 22:15
you have to call out the js file from the <SCRIPT> tag I think... sonething similar to |
Bipolar (III) Inmate From: Drammen, Norway |
posted 09-25-2000 02:06
Figured it out. Thanks for the help. |
Nervous Wreck (II) Inmate From: germany |
posted 09-25-2000 15:49
the correct code is: |
Maniac (V) Mad Scientist From: Mi, USA |
posted 09-25-2000 16:07 |