This is the Message Centre for bubster
Yodelling
Jonny Started conversation Nov 20, 2000
Hi bjb esq.
Just noticed the sad down grade from "Daily" to "Occaisional". I'd have been yodelling news myself, but for two reasons:
1) I can't yodel.
and
b) I don't have any news.
I have plans afoot to rectify "a", but I can't promise to do anything about "2".
Yodelling
Classic Krissy Posted Nov 20, 2000
I'm going to yodel for Jonny's help!
YOODLELDOOO!
Jonny,
I tried to steal the code for your countdown, but it didn't work on my screen. I want a wedding countdown and it said that it wouldn't work. I thought that before I burst into tears and cursed my cruel fate I would check with you. Any ideas?
Yodelling
Classic Krissy Posted Nov 20, 2000
Yes, yes, very very nice Talky Spartus, but how do I instert it in GUIDEML?
Yodelling
Ant Posted Nov 21, 2000
Try this script Krissy
A very important countdown
Only this long until I'm married!:
<!-- Hide
var cdHours;
var cdMins;
var cdSecs;
function CalcAll(){
var ret="";
now=new Date();
then=new Date("April 30, 2001 09:00:00");
diff=Math.ceil((then-now)/1000); // Number of seconds until that date.
/*
* Calculate the difference due to timezones, taking into
* account that we're now in BST. Jeez, Jace, your
* location makes this trickier that it could be. But then if
* you weren't there I wouldn't be doing this at all...
*/
if(diff > 0){
diff+=now.getTimezoneOffset()*60 + 3600;
cdHours=Math.floor(diff/(60*60));
diff-=cdHours*60*60;
cdMins=Math.floor(diff/60);
diff-=cdMins*60;
cdSecs=diff;
ret=cdHours+" Hours, "+cdMins+" Minutes and "+cdSecs+" Seconds";
}
else{
ret="It's today ";
}
return ret;
}
function ShowCountDown(){
document.cd.CountDown.value=CalcAll();
timerID=setTimeout("ShowCountDown()", 1000);
}
ShowCountDown();
// Stop hiding -->
Yodelling
Ant Posted Nov 21, 2000
This is Jonny's script by the way, oh and watch out for the smiley I put in there half way down.
Yodelling
Spartus Posted Nov 21, 2000
I thought the parser tossed out any block and you had to be altogether more clever to stick scripty things in. Jonny should yodel in some advice here....
Yodelling
Jonny Posted Nov 21, 2000
Well, I'm certianly not aware of any cleverness!
The code, as it looks when I edit my page is as follows (I'm guessing that the first 3 tags are standard in every page, the important bits are the ... - I just stuck it in a table for formatting - and the ... sections). Hope that helps.
I've kind of given up hope of this year being any good, still next year starts in only:
<!-- Hide
var cdHours;
var cdMins;
var cdSecs;
function CalcAll(){
var ret="";
now=new Date();
then=new Date("January 1, 2001 00:00:00");
diff=Math.ceil((then-now)/1000); // Number of seconds until that date.
if(diff > 0){
diff+=now.getTimezoneOffset()*60 + 3600;
cdHours=Math.floor(diff/(60*60));
diff-=cdHours*60*60;
cdMins=Math.floor(diff/60);
diff-=cdMins*60;
cdSecs=diff;
ret=cdHours+" Hours, "+cdMins+" Minutes and "+cdSecs+" Seconds";
}
else{
ret="It's over";
}
return ret;
}
function ShowCountDown(){
document.cd.CountDown.value=CalcAll();
timerID=setTimeout("ShowCountDown()", 1000);
}
ShowCountDown();
// Stop hiding -->
Yodelling
bubster Posted Nov 21, 2000
I think that what Jonny's trying to say is:
I've given up on this year-de-dear-del
Next year starts any day:
Label abel abe- abel oooh.
<!-- Hide Heidi Hide Heidi
Hiedi hee-oh
Babel-able babe Heidi Ho Hee Hoo
Hide Heidi Hide Heidi
Hiedi hee-oh
Babel-able-Mabel-fable-oo
// Stop hiding ( odel-adee-odel-oo )
// Stop hiding ( odel-adee-odel-oo )
// Stop hiding ( odel-adee-odel-oo )-->
Yodelling
Jonny Posted Nov 21, 2000
Yep, that's what I would have said had I already had my week of yodelling lessons. They start only 2 months from today.
Yodelling
Classic Krissy Posted Nov 21, 2000
That's some FANTABULOUS yodelling, bubster that had me rolling about with some serious laughter!
JONNY DID IT! JONNY DID IT! I have a wedding countdown! He fixed it! Hooray!!
*runs around baking a cake for all her hero men that pitched in to save her*
Yodelling
Jonny Posted Nov 21, 2000
She has as well, you know!
Oh, by the way Krissy, the time in the "then" date is supposed to be in GMT so, in theory, you'll need to add a few (6?) hours to take account of that. I say "in theory" because Spartus kind of identified that that bit of code may not be working (I can't claim to have put it through rigorous testing!). Also, and you may already have done this, you can change the bit that reads:
ret="It's over"
to (something like):
ret="I'm married!"
Yodelling
Classic Krissy Posted Nov 21, 2000
Yep. I thought about that. But I think I'm going to change it to MAKE WAY FOR THE MOST BRILLIANT MRS. KRISSY BAKER! or something subtle like that.
Also, Andy's in GMT so I don't mind leaving it.
Key: Complain about this post
Yodelling
- 1: Jonny (Nov 20, 2000)
- 2: Classic Krissy (Nov 20, 2000)
- 3: Spartus (Nov 20, 2000)
- 4: Classic Krissy (Nov 20, 2000)
- 5: Ant (Nov 20, 2000)
- 6: Classic Krissy (Nov 20, 2000)
- 7: Ant (Nov 21, 2000)
- 8: Ant (Nov 21, 2000)
- 9: Spartus (Nov 21, 2000)
- 10: Jonny (Nov 21, 2000)
- 11: bubster (Nov 21, 2000)
- 12: Jonny (Nov 21, 2000)
- 13: Classic Krissy (Nov 21, 2000)
- 14: Jonny (Nov 21, 2000)
- 15: Classic Krissy (Nov 21, 2000)
More Conversations for bubster
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."