Results 1 to 3 of 3

Thread: External Javascript in Firefox

  1. #1
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question External Javascript in Firefox

    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?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Code:
    <script type="text/javascript" src="slideshow.js"></script>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    I suggest you find a basic HTML tutorial somewhere.
    Ouch

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •