Referencing a js page, Unable to link to a script page |
Referencing a js page, Unable to link to a script page |
arcticwanderer |
Jun 22 2007, 11:04 AM
Post
#1
|
Newbie Group: Members Posts: 12 Joined: 22-June 07 Member No.: 3,151 |
Hello
This should be a simple thing but I can't get it right. If you look at the source on my website www.montagnaphotography.com I have a js code in the body that begins with the following: <script> /***************************************************************************** Default browsercheck - Leave this one ******************************************************************************/ function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion; this.agent=navigator.userAgent .........</script> The script works fine but is long and I want to cut it out of the body and put on a seperate page. I've cut it out, put it as a js.script file and tried referencing it using several codes such as: <script src="http://www.montagnaphotography.com/scripts.js" type=text/javascript></SCRIPT> without any luck. Does anyone have a suggestion how to reference the script correctly? |
Christian J |
Jun 22 2007, 04:07 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Could you provide a test page that shows the problem?
|
pandy |
Jun 22 2007, 04:42 PM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Additionally, does your browser throw an error (turn debugging on if you haven't already)? Did you leave the script tags in when you copied the code to a separate file?
|
Lo-Fi Version | Time is now: 24th April 2024 - 02:16 PM |