/    Sign up×
Community /Pin to ProfileBookmark

bug in countdown js – any ideas?

Hello,

I’m new to WebDeveloper.com, but I’m having some trouble with a bug. This count-down image at [url]http://dead.net/small_countdown/small_counter.html[/url] has an intermittent bug which makes the tenth of a second disappear, then the seconds disappear. I can’t even re-create the bug consistently. I’m not familiar with prototype.js or scriptaculous.js. either so I’m not sure where to even start.

Any help you can give me would be greatly appreciated! 😮

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@VioletSiteauthorJan 06.2009 — UPDATE:

I believe I may have narrowed it down to:
<i>
</i> function updatemessage() {
//document.headimage.src = 'http://dead.net/small_countdown/image2.gif';
//document.year.src = 'http://dead.net/small_countdown/2009.png';
//self.frames['themessage'].location = 'http://dead.net/small_countdown/message2.php';
//self.frames['bottom_message'].location = 'http://dead.net/small_countdown/bottom_message2.php';
//hide('eye');
//unhide('message');
[B]//unhide('bottommsg');[/B]

<i> </i> // adjust the size of the parent iframe

<i> </i> //window.parent.document.getElementById('topframe').style.height = "450px';
<i> </i> }

<i> </i> function updatemessage2() {
<i> </i> //document.headimage.src = 'http://dead.net/small_countdown/image3.gif';
<i> </i> //document.year.src = 'http://dead.net/small_countdown/2009.png';
<i> </i> //self.frames['themessage'].location = 'http://dead.net/small_countdown/message3.php';
<i> </i> //self.frames['bottom_message'].location = 'http://dead.net/small_countdown/bottom_message3.php';
<i> </i> //hide('eye');
<i> </i> //unhide('message');
<i> </i> [B]//unhide('bottommsg');[/B]
<i> </i> }

<i> </i> function unhide(divID) {
<i> </i> var item = document.getElementById(divID);
<i> </i> if (item != null) {
<i> </i> item.className=(item.className=='hidden')?'unhidden':'hidden';
<i> </i> }
<i> </i> }

<i> </i> function hide(divID) {
<i> </i> var item = document.getElementById(divID);
<i> </i> if (item != null) {
<i> </i> item.className=(item.className=='unhidden')?'hidden':'unhidden';
<i> </i> }
<i> </i> }

I've asked the owner to see the four related .php files -- hopefully it will give me more to work with.


?
Copy linkTweet thisAlerts:
@KorJan 06.2009 — I see no error in Moz. Which is the browser you are using?
Copy linkTweet thisAlerts:
@VioletSiteauthorJan 06.2009 — I am using Mozilla 3 as well.

There is no error. This is an intermittent bug. After waiting a bit, and possibly a re-load or two, the last digit of the seconds is no longer visible and after waiting more time, the first digit of the seconds is also no longer visible. Personally, I've not seen it go farther than that.

BTW: the functions I listed above are not even being executed, so I'm currently looking at the <style> code.
×

Success!

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