PDA

View Full Version : External Javascript in Firefox



sweno
05-31-2006, 02:17 PM
Hey all,

I've came across a small problem. I have some javascript for a slideshow on my page but its quite long so I decided to put it in an external .js file by using <script type=Javascript src="slideshow.js"><\script>

This works fine in IE but when I view in Firefox there's no slideshow.... It works fine in both if I leave it as internal javascript, so how do i call an external file in firefox?

Twey
05-31-2006, 02:37 PM
I'm not surprised... "Javascript" is not a valid MIME-type, and tags are closed with a slash (/) not a backslash (\). I suggest you find a basic HTML tutorial somewhere.

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

sweno
05-31-2006, 03:06 PM
I suggest you find a basic HTML tutorial somewhere.

Ouch:eek: