I found out how (just a couple of minutes ago):

You don't need to initialize a variable using the new Date, but do the
initialization inside .countdown({

example:

$('div#countdowntimer').countdown({until:new Date
(2009,9,15,14,0,0),format:'odHMS'});

This will countdown to: September 15th 2009, 14:00

Cheers,
Mehigh

On Nov 9, 10:57 pm, B3 <[EMAIL PROTECTED]> wrote:
> I got it to work, but I see the "+ 5" is what sets the days left to
> countdown to.  Everytime I reupload this will change since the
> countdown will start over.. Is there a way I can set a specific date
> instead of days left?
>
> On Nov 9, 10:45 am, CodingCyborg <[EMAIL PROTECTED]> wrote:
>
> > Since the way this forum is set up the line breaks are changed. This
> > caused some of your code lines to be off.
> > The line after "layout:" with the "+" at the end should be on the same
> > line as the "layout:" line.
> > Also, I'm not sure if this one matters, but put the "'yODHMS'," on the
> > line above it right after the "Format:"
>
> > That may or may not solve the problem, but give it a try.
>
> > On Nov 9, 12:05 pm, [EMAIL PROTECTED] wrote:
>
> > >http://designbishop.com/4/
>
> > > On Nov 9, 2008, at 9:43 46 AM, Pixelstuff wrote:
>
> > > > Do you have a test page we can view?
>
> > > > On Nov 8, 11:52 pm, B3 <[EMAIL PROTECTED]> wrote:
> > > >> I did exactly what you said, added the top to my <head> and added the
> > > >> span to the html and still nothing.  Seems the files are being  
> > > >> loaded,
> > > >> so I don't understand whats going on.. anythin else I can try?
>
> > > >> On Nov 8, 4:49 pm, FrenchiINLA <[EMAIL PROTECTED]> wrote:
>
> > > >>> Add the following in the header of your page with the correct
> > > >>> liftoffTime value
> > > >>>     <script type="text/javascript">
> > > >>>         $(function() {
> > > >>>             var liftoffTime = new Date();
> > > >>>             liftoffTime.setDate(liftoffTime.getDate() + 5);
> > > >>>             $('#listLayout').countdown({ until: liftoffTime, format:
> > > >>> 'yODHMS',
> > > >>>                 layout: '<ul>%Y<li>%n %l</li>%Y%O<li>%n %l</li>%O
> > > >>> %D<li>
> > > >>> %n %l</li>%D' +
> > > >>>     '%H<li>%n %l</li>%H%M<li>%n %l</li>%M%S<li>%n %l</li>%S</ul>'
> > > >>>             });
> > > >>>         });
> > > >>>     </script>
>
> > > >>> Then in your page body add a span like <span id="listLayout"></span>
> > > >>> and your code should work
>
> > > >>> On Nov 8, 3:30 pm, B3 <[EMAIL PROTECTED]> wrote:
>
> > > >>>> Can someone just give me some instructions to get this to work??? I
> > > >>>> don't understand how to implement this into my site...  where  
> > > >>>> would I
> > > >>>> put this:
>
> > > >>>> $('#listLayout').countdown({until: liftoffTime, format: 'yODHMS',
> > > >>>>     layout: '<ul>%Y<li>%n %l</li>%Y%O<li>%n %l</li>%O%D<li>%n %l</
> > > >>>> li>
> > > >>>> %D' +
> > > >>>>     '%H<li>%n %l</li>%H%M<li>%n %l</li>%M%S<li>%n %l</li>%S</
> > > >>>> ul>'});
>
> > > >>>> ??? The countdown.js and jquery.js are loading but I don't get  
> > > >>>> it...
> > > >>>> and also what would I put in the html side? I got this from 
> > > >>>> herehttp://keith-wood.name/countdown.html#listLayout
>
> > > >>>> thanks

Reply via email to