Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.
Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.
Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?
Fine then,
what do you want?
script for a countdown clock
how do you want it?
just a basic text one
what language does it need to be in?
English
why do you want it?
For a countdown to March 14th, when HGSS comes out
why should we care what you want?
'Cause your nice
what do you want?
A script that will go from one script (i.e. 'HGSS is coming out on march 14th') to another ((at 12:59 pm March 13th, switch to) 'HGSS came out today')
how do you want it?
I just need it to change my text and any other basic HTML coding
what language does it need to be in?
English
why do you want it?
So that I can add something to my News Archive, at Midnight on the last day of the month
why should we care what you want?
'Cause your nice
define "countdown clock"; every clock I've ever seen counts upward and loops. well, or clockwise.
A clock that counts down to a certain date/time
okay, fair enough, I guess.
elaborate.
A clock that is like 5 days 2 hours 3 minutes 20 seconds
anyone here read computer stupidities?
"what language do you write your programs in?"
"english, of course."
if you can't figure out what's wrong, figure it out before you come back.
Sorry, just used to 'languages' being English, French etc. Javascript I guess
and... this is a good idea why?
you know, there's a reason I have a calendar.
it's a fairly reasonable assumption for your target population.
The same reason Walmart has a countdown clock in all their stores just before Christmas, it makes people more excited./B]
if you're being ridiculously unclear, that is rather difficult.
I don't have to be nice.
But, you could say that about anything, and it's not like you have to do it. It would just help me if you would.
this is better.
just do a subtraction and comparison on ever page load.
Subtraction and comparison?
you can't. almost literally.
(yes, I know, you can plug php into your html and stuff, but I don't think this person has any idea what they're talking about, so.)
I'm new to HTML, and have not even started to learn any other coding.
programming language, not natural language. you can't write scripts in english; it's too imprecise for that.
no, html is not a programming language. it is supposedly a markup language. it isn't even turing-complete.
Javascript I guess, although a few people may not see a difference due to having Javascript disabled, I think that I will take that chance.
and this will help with that how?
the best way to do this is to use an if time > target: ...; else null or your language's equivalent.
That way I don't have to get on my computer at midnight just to update a website
that varies, and is inversely proportional to the number of times you show that you have very little idea of what you're talking about.
your is possessive. you may have wanted 'you''re'; and in any case, you shouldn't count on niceness anyway. some people aren't nice.
I realise that some people aren't nice, but, if someones not nice, they aren't anyone I really want to deal with.
sreservoir, quit being an asshole. Its obvious that you don't care to help him, and that is what he is asking for.
lucas666 said:A clock that counts down to a certain date/time
A clock that is like 5 days 2 hours 3 minutes 20 seconds
Sorry, just used to 'languages' being English, French etc. Javascript I guess
The same reason Walmart has a countdown clock in all their stores just before Christmas, it makes people more excited.
But, you could say that about anything, and it's not like you have to do it. It would just help me if you would.
yes. I could. so you should know?
Subtraction and comparison?
you subtract the current time from the target time, and if it's negative, you print that it's been released; if it's positive, you tell them how much time is left.
I'm new to HTML, and have not even started to learn any other coding.
ah, that's a problem. html cannot do that.
Javascript I guess, although a few people may not see a difference due to having Javascript disabled, I think that I will take that chance.
okay.
hm, what's your host? or at least what sort of scripting tools do they provide?
That way I don't have to get on my computer at midnight just to update a website
I never really saw the point of updating at midnight, but eh. your best course of action is somehing like this:
Code:if current time is earlier than target time: write out the time information else write out the news post
that's pseudocode, so you'll have to translate it to whatever language you're using.
if you do it in a client-side language, you'll have the problem of people viewing the source reading the post before time, though.
I realise that some people aren't nice, but, if someones not nice, they aren't anyone I really want to deal with.
at some point, you realize that there aren't that many nice people out there and make do with the less mean people.
so now that you're demonstrating that you kno what you want, I need to know what tools you have at your disposal.
Webs.com said:What programming languages can I use?
Premium service customers can use CGI/Perl. However, this type of programming is not available for free account holders, nor do we support the use of MySQL, MSACCESS or PHP. You can, however, link to remote scripts from your website.
Well, I'm using Webs, and I'm not exactly sure what tools I have at my disposal, but here is what I got from their 'FAQ'.
Although, I know that they allow SSI, and Javascript (I used a small snippet of them, so I know from presonal experience)
P.S. I'm a free user