This is the Message Centre for bubster

Yodelling

Post 1

Jonny

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

Post 2

Classic Krissy

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?


Removed

Post 3

Spartus

This post has been removed.


Yodelling

Post 4

Classic Krissy

Yes, yes, very very nice Talky Spartus, but how do I instert it in GUIDEML?


Yodelling

Post 5

Ant

Just put then place the java code here and put after it. I hoope that helps smiley - smiley


Removed

Post 6

Classic Krissy

This post has been removed.


Yodelling

Post 7

Ant

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 smiley - smiley";
}

return ret;
}

function ShowCountDown(){
document.cd.CountDown.value=CalcAll();
timerID=setTimeout("ShowCountDown()", 1000);
}

ShowCountDown();

// Stop hiding -->


Yodelling

Post 8

Ant

This is Jonny's script by the way, oh and watch out for the smiley I put in there half way down.


Yodelling

Post 9

Spartus

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

Post 10

Jonny

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

Post 11

bubster

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

Post 12

Jonny

smiley - smiley

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

Post 13

Classic Krissy

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

Post 14

Jonny

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

Post 15

Classic Krissy

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. smiley - smiley


Key: Complain about this post

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."

Write an entry
Read more