Using Javascript in Dreamweaver

message from Gary T. Butler on 18 Jul 2004
I need help with Dreamweaver and Javascript.

I tried adding javascript inline in the html code in Dreamweaver but
Dreamweaver does not recognize the javascript. See example below of
javascript that was added.

I have a problem with menu scripts that work outside of Dreamweaver. These
scripts have been downloaded from different web sites. I am a retired
programmer just getting back into programming and would like to do some
fancy work with web sites, such as my High Scoll alumni web site.

If you know of a web site that offers a tutorial or a book that gives me the
procedure to use to insert javascript code to dreamweaver please let me
know. If you can give me some hints as to how to insert javascript code, I
would be greatly appreciative.

Below is a web page with javascript that I have added. The output from the
javascript code does not show in a browser. Mick White answered my previous
post by asking if I had up loaded the javasvcript files, which I had, and
said there were problems with the code but did not elaborate. Since I am not
a javascript coder I would appreciacte any help.

Thanks in advance.

Gary T. Butler
gtbutler@pacbell.net

<html>

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>New Page 1</title>

<STYLE>

<!--

A.ssmItems:link {color:purple;text-decoration:none;}

A.ssmItems:hover {color:black;text-decoration:none;}

A.ssmItems:active {color:red;text-decoration:none;}

A.ssmItems:visited {color:#663300;text-decoration:none;}
 
Mick White replied to Gary T. Butler on 19 Jul 2004
What exactly is not working? The document's "lastModified" property is
unreliable, at least in Netscape.
The "y2k" function is superfluous, that is if you are using a 1997+ browser.
document.write('© '+new Date().getFullYear()+' all rights reserved');
What is contained in the external js files? You haven't called them from
your page.
Mick

Gary T. Butler wrote:
 

Archived message: Using Javascript in Dreamweaver (Macromedia Dreamweaver Web Design)