/    Sign up×
Community /Pin to ProfileBookmark

Javascipt Clock

Hi

I have used a javascript clock ([url]http://javascript.internet.com/clocks/dynamic-clock.html[/url]) on my website, however this appears to clash with the javascipt for image rollovers. When I remove all the image rollovers from my page the clock works!!

Any ideas how to get round this?

Regards

James

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@PittimannMar 03.2005 — Hi!

No problem to get the code of the clock script due to the link you provided. We'd need the other js (for the image rollovers) too.

A general hint: multiple onloads of scripts you just cut and paste will bite each other and so do identical function and/or variable names in the two scripts.

If you want to solve the prob on your own, just check both scripts for event handlers, function- and variable names. As far as the latter two are concerned, renaming 'duplicates' in one script should suffice, concerning the event stuff, identical ones need to be combined.

Cheers - Pit
×

Success!

Help @jimmer 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...