Until Christmas

Discussion in 'The Family Room' started by drakky, Dec 14, 2012.

  1. drakky

    drakky Apprentice Elf

    Joined:
    Dec 2, 2012
    Messages:
    88
    Likes Received:
    1
    I was checking out a few of the members sites noticed a lot of countdown timers till christmas , some working some not , seems they rely upon an external server for these, anyways thought I'd just knock 1 based on the banner of AusChristmaslighting hope I haven't broken any rules , of course it's free for any use , basically it will countdown till christmas of any current year in days minutes seconds

    sample html page , swf file and javascript runfile included in the zip file
    thumb.jpg
     

    Attached Files:

  2. Superman

    Superman I Have C.L.A.P and its very infectious Global Moderator

    Joined:
    May 29, 2010
    Messages:
    1,624
    Likes Received:
    6
    Location:
    Ipswich-QLD
    Find Me On:
    mine is stuck on zero as it is a countdown till lights on 1 dec, not Christmas.I guess we should change it after the lights are on
     
  3. OP
    OP
    drakky

    drakky Apprentice Elf

    Joined:
    Dec 2, 2012
    Messages:
    88
    Likes Received:
    1
    should be easy to modify it to countdown till lights are on only thing is people are different on what date they turn their lights on maybe an external xml file (editable in notepad) for the turn on date might be a good idea
     
  4. ԆцряєсϮ

    ԆцряєсϮ Senior Elf

    Joined:
    Dec 24, 2011
    Messages:
    502
    Likes Received:
    1
    Location:
    Botanic Ridge
    Find Me On:
  5. fasteddy

    fasteddy I have C.L.A.P Global Moderator Generous Elf

    Joined:
    Apr 26, 2010
    Messages:
    6,471
    Likes Received:
    16
    Location:
    Albion Park NSW
    Find Me On:
    Definetly not breaking any rules with that. In fact its greatly appreciated and we should put this somewhere where it wont get lost in the forum.
     
  6. Bird

    Bird Proud LOR user

    Joined:
    Nov 8, 2011
    Messages:
    1,747
    Likes Received:
    0
    Location:
    Cincinnati, Ohio, USA
    Agreed, I'm sure that many people would think of that as a nice addition to their website.
    Maybe to could say 'Until Christmas' and/or 'Until Lights On'
     
  7. OP
    OP
    drakky

    drakky Apprentice Elf

    Joined:
    Dec 2, 2012
    Messages:
    88
    Likes Received:
    1
    ok well I thought maybe I could make it a bit better so I've added animated snow
    and make it clickable to open https://auschristmaslighting.com/forums/ in a new window

    acl_xmas1.jpg

    on Christmas day (1 second before midnight) the countdown timer dissappears and a Merry Christmas message shows up until New Years Eve then it goes back to countdown for the next Christmas

    acl_xmas2.jpg

    if you have alreay posted it on your site just replace the until_xmas.swf file and you're good to go

    I'll work on a different 1 for the "Lights On"
     

    Attached Files:

  8. ԆцряєсϮ

    ԆцряєсϮ Senior Elf

    Joined:
    Dec 24, 2011
    Messages:
    502
    Likes Received:
    1
    Location:
    Botanic Ridge
    Find Me On:
    Your making it all too easy drakky.


    updated,


    once again cheers
    Rod
     
  9. fasteddy

    fasteddy I have C.L.A.P Global Moderator Generous Elf

    Joined:
    Apr 26, 2010
    Messages:
    6,471
    Likes Received:
    16
    Location:
    Albion Park NSW
    Find Me On:
    This is really appreciated and a great addition for ACL members, thanks heaps 8)
     
  10. DeeJai

    DeeJai Is that Magic Smoke?!?

    Joined:
    Oct 18, 2011
    Messages:
    1,007
    Likes Received:
    0
    Location:
    No longer in Radelaide
    wow, thanks Drakky, just added it to my wordpress site, and it was fairly easy to do.

    Much appreciated. Just curious though, which timezone is it setup for? or is it local to the persons computer?



    www.DeeJaiLights.com
     
  11. OP
    OP
    drakky

    drakky Apprentice Elf

    Joined:
    Dec 2, 2012
    Messages:
    88
    Likes Received:
    1
    you're welcome and flash drives the time from the users local computer so it doesn't matter what server timezone you're on just as long and the user's computer is set to the right time it should be correct
     
  12. kel

    kel Dedicated Elf

    Joined:
    May 12, 2010
    Messages:
    1,525
    Likes Received:
    0
    Location:
    Tenterfield, NSW/Qld border
    [​IMG]
     
  13. Benschristmaslights

    Benschristmaslights Dedicated Elf Global Moderator Generous Elf

    Joined:
    May 2, 2010
    Messages:
    2,122
    Likes Received:
    3
    Location:
    Elderslie
    Find Me On:
    thanks to matt and alec and ryan for helping put this on my website also
     
  14. OP
    OP
    drakky

    drakky Apprentice Elf

    Joined:
    Dec 2, 2012
    Messages:
    88
    Likes Received:
    1
    there seems to be a grey line above and below the flash file on your site , well thats how it looks on my pc , to get rid of that and blend it in on your site I would change this line of code


    'wmode', 'window',

    to

    'wmode', 'transparent',

    that should fix it
     
  15. OP
    OP
    drakky

    drakky Apprentice Elf

    Joined:
    Dec 2, 2012
    Messages:
    88
    Likes Received:
    1
    ok I've had a go at making a separate 1 for Until Lights On not sure if it's ok but here it is
    sort of works similar to the Christmas 1 but you can change the date it goes on just incase you want to set a specific date and time your lights are getting turned on.
    you have to edit an xml to put it on your site
    edit the file set_time.xml with an ordinary text editor like windows notepad
    it's pretty basic the text in the file is this

    <?xml version="1.0"?>
    <myTime>
    <start_time>
    <myYear>2013</myYear> (set year here)
    <myMonth>11</myMonth> (11 is December , January is 0)
    <myDate>01</myDate>
    <myHour>18</myHour>
    <myMinute>30<myMinute>
    </start_time>
    </myTime>


    you need to change these 4
    <myYear>2013</myYear> (set year here)
    <myDate>01</myDate> 1st of december
    <myHour>18</myHour> 6pm (24 hour time)
    <myMinute>30<myMinute> 30 minutes past 6

    included is a sample html file for installing
    some screen shots below
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      18.2 KB
      Views:
      18
    • 3.jpg
      3.jpg
      File size:
      23.7 KB
      Views:
      25
    • 4.jpg
      4.jpg
      File size:
      26.1 KB
      Views:
      18
    • 5.jpg
      5.jpg
      File size:
      16.9 KB
      Views:
      18
    • until_lights.zip
      File size:
      64.2 KB
      Views:
      10

Share This Page