why javascript fails-external .js file? - TechRepublic
General discussion
October 3, 2002 at 12:58 AM
mail

why javascript fails-external .js file?

by mail . Updated 23 years, 6 months ago

So, this script I’m using on my homepage
(http://danmoriarty.com), to rotate .jpg images,
that only seems to work when it’s embedded
in that page’s code.

When I try to add it to my external .js file, with
my other javascript code, it fails to work.
Anyone know why?

Here’s the code:

also:

and:
websites

I’m trying to learn javascript. Thanks much.

This discussion is locked

All Comments