/    Sign up×
Community /Pin to ProfileBookmark

Javascript Behaviors Don’t Work Together

I need to incorporate several behaviors on 1 page. I have several behaviors that work in 2 separate pages. When I try to add a behavior, those which are working, stop working. I need to consolidate the behaviors into 1 document, with 1 external js file. I am a novice in over her head. I just don’t understand it and can’t troubleshoot.
In 1 file, the header and footer don’t load. In the second file, the random loading banner isn’t showing, nor is the logo image. But, the other elements are working. I can’t find what’s wrong.
There is far too much code to paste. What info should I provide?
I know that {s are important. I don’t understand code well enough to find an error.
Is there a checklist I could use that might help me to find errors?
Any advice will be most appreciated.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoFeb 02.2007 — most likely you are declaring the same variablesmor than once, or you have multiple onload calls,
Copy linkTweet thisAlerts:
@Elle0000authorFeb 02.2007 — If I go through the css code and make all names 100% unique, should that help?

I am using Dreamweaver. I can check all of the behaviors in the behavior panel. If there is just 1 onload for each, what do you suggest?
×

Success!

Help @Elle0000 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...