homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Different help with Javascript.
Where and how do I add a Javascript library.

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

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)

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

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)

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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved