Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: open

Different help with Javascript.

Where and how do I add a Javascript library.

   
9:59 pm on Jun 9, 2003 (gmt 0)

10+ Year Member



First let me say that I found your site for the first time Sunday, and the person who helped me was amazing. With that, I have a new problem.

I have a site that I am building, <sorry, no personal links>, and I have 3 sets of mouseover buttons on the homepage. I built the site in GoLive 6.0, on pc, and they house the JavaScript library on my "c" drive, and call it "CSScriptLib.js". Obviosly, when I uploaded the page, my mouseovers didn't work. I added "CSScriptLib.js" to my site and directed the "script src" tag to there. It still doesn't work.

Is there a way, without learning JavaScript, because of time constraints, to put the script on my site and have the mouseovers work? Is there something I am missing, or maybe should I have the script in a different folder?

I am more of a designer who is learning the code half of designing, and I get very confused when it comes to javascript. Please advise.

[edited by: tedster at 12:13 am (utc) on June 10, 2003]

12:21 am on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The script tag should do the trick -- place it in the head section of the HTML like this:
<!doctype declaration...>
<html>
<head>
<title></title>
<script type="text/javascript" src="/path/filename.js"></script>
</head>
<body>
</body>
</html>

Make sure you put the .js file in whatever directory you point the src= attribute to, and just for good measure, avoid mixed cases in the file and directory names.

2:09 am on Jun 10, 2003 (gmt 0)

10+ Year Member



I have made those changes to no avail. I also double checked the code. I will ask the ISP, and see if they have any ideas.

Thanks again.

2:38 am on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



That sounds like the right direction to me. Even though external .js files are as common as dust today, the server still needs to be set properly in order to associate a mime type with with the .js extension. Just maybe the problem lies there.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month