RE: Two occurrences of Javascript on one page??

by "Micah R. Condon" <micahc(at)webdezyne.com>

 Date:  Sun, 17 Feb 2002 07:27:24 -0700
 To:  "'Lefcoe,
Ruth'" <rlefcoe(at)fcg.com>,
<hwg-languages(at)hwg.org>
 In-Reply-To:  fcg
  todo: View Thread, Original
sounds like maybe the scripts share some global variables so one is
overriding the other


-----Original Message-----
From: owner-hwg-languages(at)hwg.org [mailto:owner-hwg-languages(at)hwg.org]On
Behalf Of Lefcoe, Ruth
Sent: Sunday, February 17, 2002 6:09 AM
To: hwg-languages(at)hwg.org
Subject: Two occurrences of Javascript on one page??


Happy Friday everyone!

I'm having some trouble understanding how to have two javascript actions
occur in one window/webpage. I'm VERY new to javascript. I'm working with
script taken (legally) from www.dynamicdrive.com and am teaching myself to
use and customize such code.

The following is the info you'll need to try and help me out, if you can...

On: www.urban-union.com/samplehome.htm I have just one javascript which is a
horizontal drop down menu. This one uses 2 .js files which are in my
directory. It runs just fine on this "homepage" (please note, I'm in
development stages and this is a draft/many links don't work yet, etc)

On: www.urban-union.com/AboutUU.htm I have the SAME exact menu javascript
AND a fading news scroller lower down on the page. Only the scroller is
working. When the scroller is removed, the menu works (as seen on the
samplehome.htm).

I read on the dynamicdrive FAQ all about what to do to make more than one
script work on a page together, but as I'm so new at this, I don't
UNDERSTAND what to do. Also, I think that the changes may have to be done in
one of the .js files and not in the source code itself... Maybe I'm wrong. I
won't attach the .js files at this time but if they are needed, let me know.


Thanks for ANY help you may be able to provide!!!

__________________

[ Ruth Lefcoe ]
[ Senior Graphic Designer ]
[ First Consulting Group ]
[ Washington, DC office ]

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.