Results 1 to 3 of 3

Thread: cant link js from external file

  1. #1
    Join Date
    Oct 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default cant link js from external file

    i am working on a simple gallery with an image array to use on multiple project pages.

    see example: http://uoregon.edu/~josh/gallery/

    i can get the javascript to work if i place it all in the document head. however, the idea was to have it as one external file i could link to from all the project files.

    can anyone help?

    thanks.

  2. #2
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

  3. #3
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    remove the script tags and the comments inside your gallery.js:
    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    .
    .
    .
    //-->
    </SCRIPT>
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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
  •