Countdown script not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt Stanley

    Countdown script not working

    I am using the countdown script developed by Chris Nott on his
    website(http://www.dithered.com/javascript/c.../example.html).

    The script counts down the days, hours, minutes and seconds to a specified
    date. His site at the link above provides the source code .js file, as well
    as instructions for how to install and configure the script on your page.
    I've followed them explicitly, yet it won't work, and I was hoping someone
    might be able to take a look and help me out.

    Here's the URL where I'm using the script:


    TIA for any help provided!

    ---

    Sincerely,

    Matt
    matt@lebois.com


  • Janwillem Borleffs

    #2
    Re: Countdown script not working


    "Matt Stanley" <matt@lebois.co m> schreef in bericht
    news:vjtj5338le tg91@corp.super news.com...[color=blue]
    > I am using the countdown script developed by Chris Nott on his
    > website(http://www.dithered.com/javascript/c.../example.html).
    >
    > The script counts down the days, hours, minutes and seconds to a specified
    > date. His site at the link above provides the source code .js file, as[/color]
    well[color=blue]
    > as instructions for how to install and configure the script on your page.
    > I've followed them explicitly, yet it won't work, and I was hoping someone
    > might be able to take a look and help me out.
    >
    > Here's the URL where I'm using the script:
    > http://www.lebois.com/wedding/home.html
    >[/color]

    A couple of errors showed up in a glance:

    * You didn't generate all of the required images (Only 0.gif as far as I can
    see)
    * You didn't close the script tag that includes countdown.js with </script>
    * You are using a date from the past

    BTW, congratulations to the couple :-)


    JW



    Comment

    • Matt Stanley

      #3
      Re: Countdown script not working

      JW,

      Thanks for your help! That seems to have fixed it in IE/NS 6. IE 5.5 seems
      to be having a problem with it but that may be my PC. Will reboot and check
      again. If it still has a problem, where can I get my hands on a .js file
      that will redirect the visitor to an alternate URL if they're using IE 5.5?

      "Janwillem Borleffs" <jwb@jwbfoto.de mon.nl> wrote in message
      news:3f3f5fa9$0 $28895$1b62eedf @news.euronet.n l...[color=blue]
      >
      > "Matt Stanley" <matt@lebois.co m> schreef in bericht
      > news:vjtj5338le tg91@corp.super news.com...[color=green]
      > > I am using the countdown script developed by Chris Nott on his
      > > website(http://www.dithered.com/javascript/c.../example.html).
      > >
      > > The script counts down the days, hours, minutes and seconds to a[/color][/color]
      specified[color=blue][color=green]
      > > date. His site at the link above provides the source code .js file, as[/color]
      > well[color=green]
      > > as instructions for how to install and configure the script on your[/color][/color]
      page.[color=blue][color=green]
      > > I've followed them explicitly, yet it won't work, and I was hoping[/color][/color]
      someone[color=blue][color=green]
      > > might be able to take a look and help me out.
      > >
      > > Here's the URL where I'm using the script:
      > > http://www.lebois.com/wedding/home.html
      > >[/color]
      >
      > A couple of errors showed up in a glance:
      >
      > * You didn't generate all of the required images (Only 0.gif as far as I[/color]
      can[color=blue]
      > see)
      > * You didn't close the script tag that includes countdown.js with[/color]
      </script>[color=blue]
      > * You are using a date from the past
      >
      > BTW, congratulations to the couple :-)
      >
      >
      > JW
      >
      >
      >[/color]


      Comment

      • Janwillem Borleffs

        #4
        Re: Countdown script not working


        "Matt Stanley" <matt@lebois.co m> schreef in bericht
        news:vjvdi23bd5 jqda@corp.super news.com...[color=blue]
        > JW,
        >
        > Thanks for your help! That seems to have fixed it in IE/NS 6. IE 5.5 seems
        > to be having a problem with it but that may be my PC. Will reboot and[/color]
        check[color=blue]
        > again. If it still has a problem, where can I get my hands on a .js file
        > that will redirect the visitor to an alternate URL if they're using IE[/color]
        5.5?[color=blue]
        >[/color]

        The script is pretty starightforward , so an alternative URL for IE5.5 will
        be somewhat of an overkill.

        Just see what happens after the reboot and report the errors you get.


        JW



        Comment

        • Dr John Stockton

          #5
          Re: Countdown script not working

          JRS: In article <vjtj5338letg91 @corp.supernews .com>, seen in
          news:comp.lang. javascript, Matt Stanley <matt@lebois.co m> posted at Sat,
          16 Aug 2003 18:30:55 :-
          [color=blue]
          >I am using the countdown script developed by Chris Nott on his
          >website(http://www.dithered.com/javascript/c.../example.html).[/color]

          The script is not all it could be.

          It makes no adjustment for Summer Time, so that at present, 22:39:+, it
          says ... 02 hours 20 minutes ... away.

          It has
          var days = parseInt(differ ence / 86400000) + '';
          where
          var days = Math.floor(diff erence / 86400000) + '';
          is more direct and faster.

          It has a fixed timeout of nominally 1000 ms, so that, because of delays,
          it does not show every second (it misses about 1 in 20 in Win98, perhaps
          1 in 100 in WinNT+).

          The graphics are indexed by the result of parseInt on a character, where
          they could be indexed by the character, or by +character.

          Date fields are handled as strings; numbers seem simpler and probably
          faster.



          BTW, the following gives me a date-time difference in days, hh:mm:ss :

          Diff = new Date(2010, 11, 25) - new Date()
          X = Math.floor(Diff/864e5) + ' days, ' +
          new Date(Diff%864e5 ).toString().ma tch(/\S{8}/)

          but I've not checked its efficiency. It will fail anywhere that
          toString() does not give 24-h hh:mm:ss .

          --
          © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
          <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
          <URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates, sources.
          <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.

          Comment

          • Matt Stanley

            #6
            Re: Countdown script not working

            Thanks for the help John,

            I adopted your advice... always appreciate any input on how to improve my
            scripts and/or make them more efficient.

            Matt

            "Dr John Stockton" <spam@merlyn.de mon.co.uk> wrote in message
            news:lIR1OWFvAA Q$EwA8@merlyn.d emon.co.uk...[color=blue]
            > JRS: In article <vjtj5338letg91 @corp.supernews .com>, seen in
            > news:comp.lang. javascript, Matt Stanley <matt@lebois.co m> posted at Sat,
            > 16 Aug 2003 18:30:55 :-
            >[color=green]
            > >I am using the countdown script developed by Chris Nott on his
            > >website(http://www.dithered.com/javascript/c.../example.html).[/color]
            >
            > The script is not all it could be.
            >
            > It makes no adjustment for Summer Time, so that at present, 22:39:+, it
            > says ... 02 hours 20 minutes ... away.
            >
            > It has
            > var days = parseInt(differ ence / 86400000) + '';
            > where
            > var days = Math.floor(diff erence / 86400000) + '';
            > is more direct and faster.
            >
            > It has a fixed timeout of nominally 1000 ms, so that, because of delays,
            > it does not show every second (it misses about 1 in 20 in Win98, perhaps
            > 1 in 100 in WinNT+).
            >
            > The graphics are indexed by the result of parseInt on a character, where
            > they could be indexed by the character, or by +character.
            >
            > Date fields are handled as strings; numbers seem simpler and probably
            > faster.
            >
            >
            >
            > BTW, the following gives me a date-time difference in days, hh:mm:ss :
            >
            > Diff = new Date(2010, 11, 25) - new Date()
            > X = Math.floor(Diff/864e5) + ' days, ' +
            > new Date(Diff%864e5 ).toString().ma tch(/\S{8}/)
            >
            > but I've not checked its efficiency. It will fail anywhere that
            > toString() does not give 24-h hh:mm:ss .
            >
            > --
            > © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE[/color]
            4 ©[color=blue]
            > <URL:http://jibbering.com/faq/> Jim Ley's FAQ for[/color]
            news:comp.lang. javascript[color=blue]
            > <URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates,[/color]
            sources.[color=blue]
            > <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics,[/color]
            links.


            Comment

            Working...