[Web4lib] external JS array possible in this instance?

Lewandowski, Randy R. rlewandowski at bsu.edu
Wed Jul 27 12:45:57 EDT 2005


For an external JavaScript file use something like this in the <head>
section:

<script language="javascript" src="/common/javascripts/scripts.js"
type="text/javascript"></script>

Randy R. Lewandowski
Web Developer
Library Information Technology Services 
University Libraries 
Ball State University 
Muncie IN 47306 
voice: 765.285.8032 
fax: 765.285.1096 
RLewandowski at bsu.edu 
www.bsu.edu/library

-----Original Message-----
From: web4lib-bounces at webjunction.org
[mailto:web4lib-bounces at webjunction.org] On Behalf Of Ayanna Gaines
Sent: Wednesday, July 27, 2005 11:18 AM
To: web4lib at webjunction.org
Subject: [Web4lib] external JS array possible in this instance?

Greetings. I am redoing our library's web site this summer. A new 
feature I am enacting is a "What is this database" box that will feature

information about the database when the user moves the mouse over the 
link for the database. I am doing this using a JavaScript array. You can

see a rough example at 
<http://www.elmhurst.edu/~ayannag/ecweb/dbpolisci.html>. In this 
example, the array is defined at the bottom of the code.

Because there are so many databases, and I have divided them up by 
category, I am wondering if I can put my JS in an external page, to be 
called within the HTML. I have taken a course in JS, and tweaked with 
it, but I don't know enough to know whether the use of the 'div1' would 
go awry if I were to do an external JS.

Any guidance would be appreciated. Please excuse any errors in my code 
-- as I said, this is a rough example, and I have already seen some 
problems with my CSS (and the fact that my referring URLs aren't 
referring to the right places, since this is a mock-up in a temporary 
holding place). I'll deal with those problems soon -- right now, my 
primary concern is the JS array.  :)

Thanks!

-- 
Ayanna Gaines, Asst. Reference Librarian/Asst. Professor
A.C. Buehler Library, Elmhurst College
Elmhurst, IL 60126-3296
630-617-3267
http://www.elmhurst.edu/~ayannag
"Never trust anything that can think for itself if you can't see where
it keeps its brain."
 ~ Arthur Weasley, "Harry Potter and the Chamber of Secrets"

_______________________________________________
Web4lib mailing list
Web4lib at webjunction.org
http://lists.webjunction.org/web4lib/


More information about the Web4lib mailing list