![]() Preserved Topic: Importing javascript like a stylesheet. (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Drammen, Norway |
![]() 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 |
![]() 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 |
![]() 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 |
![]() why use include when you could use the .js extention and call it from that. |
Bipolar (III) Inmate From: Drammen, Norway |
![]() 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 |
![]() you have to call out the js file from the <SCRIPT> tag I think... sonething similar to |
Bipolar (III) Inmate From: Drammen, Norway |
![]() Figured it out. Thanks for the help. |
Nervous Wreck (II) Inmate From: germany |
![]() the correct code is: |
Maniac (V) Mad Scientist From: Mi, USA |
![]() |