Hi Kathleen,
Are you sure the name of the script is "functions.js" not "Functions.js"
as you stated later in your email? Try putting an alert-box with something
in your external script to be sure it's really loaded.
/Elin
> I'm attempting to use an external script file for my pages -- since I use
> the same scripts/functions throughout my entire site. The error I get
> states "'greeting' is undefined". However greeting is defined as
>
> var greeting = ("<br><font size=2><b>Good " + display + "!</font></b>");
>
> Other scripts are causing errors, but they all just say "runtime error on
> line 123" This script (and the others) worked great until I moved it
> outside of the actual page. My page looks like this:
>
> <HTML>
> <HEAD>
> <TITLE>Welcome to the U.S.C.S. Enterprise Data Warehouse Home Page</TITLE>
>
> <script language="JavaScript" src="functions.js"></script>
>
> <link rel="stylesheet" href="global.css" type="text/css">
> </HEAD>
> <BODY BGCOLOR=#FFFFFF leftmargin="0" topmargin="0" marginwidth="0"
> marginheight="0">
>
> Stuff goes here. Stuff goes here. Stuff goes here. Stuff goes here.
> Stuff goes here. Stuff goes here. Stuff goes here. Stuff goes here.
> Stuff goes here. Stuff goes here. Stuff goes here. Stuff goes here.
> Stuff goes here. Stuff goes here. Stuff goes here. Stuff goes here.
> Stuff goes here. Stuff goes here. Stuff goes here. Stuff goes here.
> Stuff goes here. Stuff goes here. Stuff goes here.
>
>
> <script language="JavaScript">
> <!-- The following lines displays the current
> date/time
> //The script for 'greeting' and 'time' can be found
> in Functions.js -->
> document.write (greeting + "<br>" + Time);
> </script>
>
>
> </BODY>