Javascript / Jquery Date Countdown
Could anyone help me with a javascript countdown;
For Example: If it's 1:05pm on Sunday, it would say: "Place yo开发者_如何学Cur order within the next 1 day 2 hours 55 minutes and your order will ship Monday" Another example: If it's 2:00pm on Saturday, it would say: "Place your order within the next 2 hours and your order will ship today"
I need to be able to change the cut off point from 4pm if needed...
It must also ignore bank holiday (Ideally, it would have a section in the code where I could put all 'excluded' dates, e.g. 12/25/2009, 01/01/2010, etc. - This way I could keep it up to date). The code must take into account that we only deliver Monday to Friday (Therefore on a Friday after 4pm, it would not say delivery tomorrow, but Monday). Once the deadline hits (4pm), the countdown jumps back up to accommodate tomorrow's deadline, etc. Amazon does a very similar thing, but I can't suss out what's going on
If you could help - it'd be appreciated. I've got the Jquery framework on my site if that helps...
Here you can find a example for your question, This may be helpful for you http://keith-wood.name/countdown.html
精彩评论