View Full Version : Ultimate Slide Show -Link To .js?

02-17-2006, 11:50 PM
Great script that works "like a charm"...

I'm wondering if there is any way to seperate the javascript from the html <head> section so I can just link to the .js file?

This would reduce the amount of "clutter" :rolleyes: I have in the .html page...

I just like to keep everything clean and seperate...sorry maybe a bit "A" type as in "anal"?

You know:
images in the /images folder
styles in the /styles folder
scripts in the /scripts folder


02-18-2006, 12:18 AM
I just like to keep everything clean and seperate...Good :)
Yes, you certainly can. Take everything out of the <script> tags in the head section (except HTML comment delimiters, if they're in there, and the Dynamic Drive license [and its decorations, which contain necessary Javascript comment delimiters]) and store it in a seperate .js file. This file must not have any HTML in it. Then, add a src attribute to the <script> tag to point to the script, just like you would for an image.

02-18-2006, 01:11 AM

Thanks I think the problem was I had left all the other "stuff" in there...now it's working just fine...:)

Thanks again,