The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Referencing a js page, Unable to link to a script page
post Jun 22 2007, 11:04 AM
Post #1


Group: Members
Posts: 12
Joined: 22-June 07
Member No.: 3,151


This should be a simple thing but I can't get it right. If you look at the source on my website I have a js code in the body that begins with the following:

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="" type=text/javascript></SCRIPT> without any luck. Does anyone have a suggestion how to reference the script correctly?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Reply to this topicStart new topic
post Jun 23 2007, 06:00 AM
Post #2

Programming Fanatic

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9

Christian, the OP did cut out the coolMenus script by Thomas Brattli ( As I suggested, the same thing can be done for the other scripts taken from elsewhere too. Or it might be that the script doesn't work in a certain browser (which?). I didn't get any error in Safari.

Pandy, no harm done wink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 15th December 2018 - 11:49 AM