/    Sign up×
Community /Pin to ProfileBookmark

Conflicting Javascript

I am having a problem with some javascripts on a page I just completed.
[url]www.magnumcontr.com/index.htm[/url]

I have a script that displays the time (in real time) that stopped displaying when I added a script that randomly displays pictures in the middle of the screen. If someone could take a look at it and throw a little advice my way it would be great.

The time script worked fine until I added the random picture script. I have even tried putting the time script into its own .js file. That did not work.

Please let me know if anyone can help.

Thank you
Rob

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinApr 21.2006 — You shouldn't use: pendule.innerHTML = dispTime; because it is IE specific

Make sure you have a single space between the start and end tags for pendule, and then use:

pendule.firstChild.nodeValue = dispTime;

That is not the problem, but just a tip.

You have a statement in your picture changing script that says: window.onload=start_slider

You also have an onload="clock()" specified in the body tag...you cannot have both.

Offset the body tag by using a setTimeout of a second.

onload="setTimeout('clock()', 1000)"

give that a go.
Copy linkTweet thisAlerts:
@rfronzauthorApr 22.2006 — i am not sure what i need to do. this is the first time i am using javascript on a page and it is not going well. please be a little more detailed. thank you.
×

Success!

Help @rfronz 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.19,
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,
)...