Month/Year reverse countdown help needed

I need to create a simple reverse countdown that only needs
the detail level of Months and Years. All of the tutorials I've
found online are for counting down smaller intervals of time, like
days, minutes, seconds, and milliseconds.
I'm not very experienced with the code needed for such a
timer, but essentially what I would like to have happen is:
1. The current Month and Year are displayed onscreen.
2. I click the mouse, and the Month and Year begin to count
BACKWARDS, as if going back in time, so the Year would go from
2007, to 2006, to 2005, etc, while the 12 months of the year would
count down in reverse to coincide with the Year.
3. When I click the mouse again, the countdown stops at
whatever month/year it happens to be, I assume all the way back to
the Year 0 if I let it play to the end.
BONUS points if this reverse countdown could speed up over
time, so that it appears to begin slowly, and rapidly speed up as
the timer goes further back in time.
Note that I do not need to use the ACTUAL date taken from the
computer's clock, I'd be happy to just enter in, say "June 2007" as
the start date and have it reverse from there. So even something
that would just countdown from the numeral "2007" to "0" while a
movieclip of the 12 months cycling along could work, though I have
no concept as to how to control/increase the speed of such an
animation as it plays.

put the months in an array "december" to "january", and set a
variable equal to the start year and an index that corresponds to
the start month. display the start year/month.
start a loop (setTimout would work) with a variable call
frequency that calls a function that
1. increases your array index (decreasing the year and
restarting your index at 0 after the last array element is
displayed) and displays the updated month/year
2. decreases the variable call frequency and define another
setTimeout.

Similar Messages

  • Oracle Final Year Project Choice Help Needed

    hi everyone,
    I m Amir from Pakistan, I m a student of CS final year at a IT University powered by Govt.of pakistan.
    Can any one help us regarding choice of Final Year project/proposal. we want to build oracle based solution for any industry or sector which will also helpfull for me and my team not only for College Final Year Project but also for after college industry solutions.
    As in consideration different sectors are in front of us, i.e Oil & Gas, Manufacturing, Automobiles, Communications etc
    But, we think this forum is much help full cause different professional peoples are much better able to guide us with respect to current and upcoming trends.
    Thanks
    Amir

    Hi Amir,
    I can think of a dozen different projects. You could check the functionalities in Oracle's eBusiness Suite (Oracle Applications). For instance you could implement a human resource module (employees details, salaries etc), or a employee time card application. Why not a resource booking system (conference rooms, beamers, computers etc).
    All these examples could easily be split into parts. Say for instance time reporting. One group could implement the interface to the employees, one group the interface to the managers, to the human resource department, and there's also quite some administrative setup modules.
    What project proposals have you come up with yet?
    Well, because it's your first post I warmly welcomes you to the Oracle Forums here at Oracle Technology Network.
    Regards,
    Martin Malmstrom
    ORACLE Consulting

  • Previous month year

    I have 2 tables-> facts and facts1 and i have to create a "sale revenue - last completed month" metric based on the columns of the tables.
    the formula on the metric right now is CASE WHEN ."Last Completed Month Indicator" = 'Y' THEN ("Sale Order Cost" +"Sale Order Cost Promotional Adjustment") / USD SPot Rate" END
    i have another table "month year" which has a columns "previous month year key no" which is in the format 190001 ( january 1900) ,"previous month year description" , "previous month year name".
    I need to use this previous month year column and put it in the metric above and calculate the revenue for last completed month. Can i do it???
    Thanks!

    Hi,
    what is the granularity of fact table and how is it related to month year table?
    Also are the fact tables partitioned? If they are partitioned AGO and TODATE functions cannot be used.
    Is any of the fact tables aggregated???
    -bifacts
    http://www.obinotes.com
    J

  • Help needed - OBIEE - Level Based Hierarchy - Expanding Month for one year affects all previous years

    I am creating a level based hierarchy for the Date Dimension
    year --> quarter --> month --> date (one path)
    year .--> month --> date (the second path).
    I create the pivot table using these dim hierarchies. But the problem is,
    when I click on, say "Month" under year 2012, it expands everything above 2012 (such as 2010, 2011 etc).
    I don't want to expand all the years, but only the one I clicked. Anyone knows what is the solution for that.
    I am sorry that I cannot attach any screen shots to explain better.
    I would really appreciate your help on this.
    Thanks
    JD

    I am using OBIEE 11.1.1.7.0.
    ok, I tried one hierarchy per dim table but didn't work too. When I created a logical column as Month + Year (e.g Jan 2014) and added to the hierarchy, its working fine. But that creates other issues on the
    client side.
    I guess, since the month is common to all the years its expanding when clicked. I also added month and year as "chronological key", but that didn't work either.
    Please advice any solution if you know it.

  • Hi I bought this Friday a 10 GB storage plan, but I received an email than I need to pay it every months how I can cancel this contract Becouse I don't able to pay it every years somebody can help and explains it to me please thanks you

    Hi I bought this Friday a 10 GB storage plan, but I received an email than I need to pay it every year how I can cancel this contract Becouse I don't able to pay it every years somebody can help and explains it to me please thanks you

    From this page http://support.apple.com/kb/TS4009 :
    iOS 5
    From your home screen, tap Settings > iCloud.
    Tap your iCloud account at the top of the screen.
    Select your iCloud Storage plan.
    Tap Downgrade Options and follow the prompts.
    There are also instructions for Windows and Mac OS X on that page

  • Help needed! Just want to cancel my year subscription. No answer from support via mail, noone answers when I call, support chat don't work.

    Help needed! Just want to cancel my year subscription. No answer from support via mail, noone answers when I call, support chat don't work.

    Hi there
    I'll pass your details to our Russian team and they'll contact you to assist further.
    Kind regards
    Bev

  • HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help

    HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help.
    I bought it in South Africa and I am currently in Israel.

    thank you for the response.its not working, tried that. i can switch the machine on and off, can hear the machine when i hold it to my ear. but nothing works, not the screen, not the sound, nothing.

  • My 3 year-old macbook pro is very slow. I have run disk utility and virus scan with no improvement. The "beach ball" will spin for minutes at a time when opening, closing or changing windows. Apple Store looked at it a few months ago with no help.

    my 3 year-old macbook pro is very slow. I have run disk utility and virus scan with no improvement. The "beach ball" will spin for minutes at a time when opening, closing or changing windows. Apple Store looked at it a few months ago with no help. What can I do?

    Under CPU: 3.5% user; 5% system; 91% idle; 441 threads; 90 processes.
    Under System: out of 2GB - 54.7MB free; 530MB wired; 603MB active; 862MB inactive; 1.95GB used.
    Is too much of the system memory tied up? If so, what can I do to free some up?

  • I need to cancel my monthly subscription, i have tried to cancel a few days before but not succeed and then auto-renew my subscription. I almost want to delete my adobe account. I need to cancel my monthly subscription, who can help me?

    I need to cancel my monthly subscription, i have tried to cancel a few days before but not succeed and then auto-renew my subscription. I almost want to delete my adobe account. I need to cancel my monthly subscription, who can help me?

    Cancel the Cloud http://forums.adobe.com/thread/1439535?tstart=0 may help
    or
    Adobe contact information - http://helpx.adobe.com/contact.html

  • I have a licence code for Adobe CS6 Master Collection which I'm using for more  than a year, suddeny I am in trial mode (all programs)  an it seems that this code is not accepted anymore. Help needed!!

    I have a licence code for Adobe CS6 Master Collection which I'm using for more  than a year, suddeny I am in trial mode (all programs)  an it seems that this code is not accepted anymore. Help needed!!

    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • Any help / link to purchase dreamweaver and photoshop license permanently? not monthly, yearly!

    Any help / link to purchase dreamweaver and photoshop license permanently? not monthly, yearly!

    CS6 Direct Downloads
    Be sure to follow the VERY IMPORTANT INSTRUCTIONS or it won't work.
    http://prodesigntools.com/adobe-cs6-direct-download-links.html
    CS6 Purchase
    http://www.adobe.com/products/catalog/cs6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.html
    Nancy O.

  • Hi, my free trial license has expired, and I am wondering if it's possible to only pay for one month for after effects without locking for a year with monthly fee. I only need this for a project that is ending next week.

    Hi, my free trial license has expired, and I am wondering if it's possible to only pay for one month for after effects without locking for a year with monthly fee. I only need this for a project that is ending next week.

    Creative Cloud Plans
    https://creative.adobe.com/#plans

  • I need FM calc. days/months/years between 2 dates but computes the work day

    I need FM calc. days/months/years between 2 dates but computes the work day.
    someone knows ?

    Hi,
    The FM is 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
    Check the following example:
    DATA: EDAYS   LIKE VTBBEWE-ATAGE,
          EMONTHS LIKE VTBBEWE-ATAGE,
          EYEARS  LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
                TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      exporting
        i_date_from          = FROMDATE
        i_date_to            = TODATE
      I_FLG_SEPARATE       = ' '
      IMPORTING
        E_DAYS               = EDAYS
        E_MONTHS             = EMONTHS
        E_YEARS              = EYEARS.
    WRITE:/ 'Difference in Days   ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years  ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    Regards,
    Bhaskar

  • Need to display "Calendar Month/Year" at report level from Calendar Day

    Hello Experts,
    I have a scenario in which I have 0CALDAY (e.g. 01.01.2009) along with other fields available in my report. My requirement is to display "Calendar Month/Year" (01.2009) in my report. Is it possible to have "Calendar Month/Year" in my report from 0CALDAY, by making changes to the query, as I cannot remodel the underlying InfoCube.
    Many Thanks,
    VA

    What you mean with huge - 100 Mio dataset?
    The import of the new infocube will be also take a long time - the database must be insert a new field for every dataset.
    => is this a big infocube, then don't use virtual infoobjects.
    => on a big infocube is important to have a good datamodel - please insert always all 11 infoobjects for the time dimension.
    Sven

  • Countdown help.

    Hey guys I need help making this countdown work. Im only getting this....
    Im using the Edson Hilios countdown, but don't know how to set the countdown time....
    jquery.countdown :
    * jQuery The Final Countdown plugin v1.0.0 beta
    * http://github.com/hilios/jquery.countdown
    * Copyright (c) 2011 Edson Hilios
    * Permission is hereby granted, free of charge, to any person obtaining
    * a copy of this software and associated documentation files (the
    * "Software"), to deal in the Software without restriction, including
    * without limitation the rights to use, copy, modify, merge, publish,
    * distribute, sublicense, and/or sell copies of the Software, and to
    * permit persons to whom the Software is furnished to do so, subject to
    * the following conditions:
    * The above copyright notice and this permission notice shall be
    * included in all copies or substantial portions of the Software.
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
    * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
    * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
    * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    (function($) {
      $.fn.countdown = function(toDate, callback) {
        var handlers = ['seconds', 'minutes', 'hours', 'days', 'weeks', 'daysLeft'];
        function delegate(scope, method) {
          return function() { return method.call(scope) }
        return this.each(function() {
          // Convert
          if(!(toDate instanceof Date)) {
            if(String(toDate).match(/^[0-9]*$/)) {
              toDate = new Date(toDate);
            } else if( toDate.match(/([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{2,4})\s([0-9]{1,2})\:([0-9]{2})\:([0-9]{ 2})/) ||
                toDate.match(/([0-9]{2,4})\/([0-9]{1,2})\/([0-9]{1,2})\s([0-9]{1,2})\:([0-9]{2})\:([0-9]{ 2})/)
              toDate = new Date(toDate);
            } else if(toDate.match(/([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{2,4})/) ||
                      toDate.match(/([0-9]{2,4})\/([0-9]{1,2})\/([0-9]{1,2})/)
              toDate = new Date(toDate)
            } else {
              throw new Error("Doesn't seen to be a valid date object or string")
          var $this = $(this),
              values = {},
              lasting = {},
              interval = $this.data('countdownInterval'),
              currentDate = new Date(),
              secondsLeft = Math.floor((toDate.valueOf() - currentDate.valueOf()) / 1000);
          function triggerEvents() {
            secondsLeft--;
            if(secondsLeft < 0) {
              secondsLeft = 0;
            lasting = {
              seconds : secondsLeft % 60,
              minutes : Math.floor(secondsLeft / 60) % 60,
              hours   : Math.floor(secondsLeft / 60 / 60) % 24,
              days    : Math.floor(secondsLeft / 60 / 60 / 24),
              weeks   : Math.floor(secondsLeft / 60 / 60 / 24 / 7),
              daysLeft: Math.floor(secondsLeft / 60 / 60 / 24) % 7
            for(var i=0; i<handlers.length; i++) {
              var eventName = handlers[i];
              if(values[eventName] != lasting[eventName]) {
                values[eventName] = lasting[eventName];
                dispatchEvent(eventName);
            if(secondsLeft == 0) {
              stop();
              dispatchEvent('finished');
          triggerEvents();
          function dispatchEvent(eventName) {
            var event = $.Event(eventName);
            event.date  = new Date(new Date().valueOf() + secondsLeft);
            event.value = values[eventName] || "0";
            event.toDate = toDate;
            event.lasting = lasting;
            switch(eventName) {
              case "seconds":
              case "minutes":
              case "hours":
                event.value = event.value < 10 ? '0'+event.value.toString() : event.value.toString();
                break;
              default:
                if(event.value) {
                  event.value = event.value.toString();
                break;
            callback.call($this, event);
          /*$this.bind('remove', function() {
            stop(); // If the selector is removed clear the interval for memory sake!
            dispatchEvent('removed');
          function stop() {
            clearInterval(interval);
          function start() {
            $this.data('countdownInterval', setInterval(delegate($this, triggerEvents), 1000));
            interval = $this.data('countdownInterval');
          if(interval) stop();
          start();
      // Wrap the remove method to trigger an event when called
      var removeEvent = new $.Event('remove'),
          removeFunction = $.fn.remove;
      /*$.fn.remove = function() {
        $(this).trigger(removeEvent);
        return removeFunction.apply(this, arguments);
    })(jQuery);
    index.html :
    <!doctype html>
    <html lang="en">
    <head>
            <meta charset="utf-8">
            <title>Nero-Hosting Updating</title>
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
            <!-- Custom font from Google Web Fonts -->
            <link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet">
            <!-- Social font -->
            <link href="css/social-font.css" rel="stylesheet">
            <!-- Template stylesheet -->
            <link href="css/metronome.css" rel="stylesheet">
        </head>
        <body>
            <div class="container">
                <!-- Header -->
                <h1 class="header section">Nero-Hosting</h1>
                <!-- /Header -->
                <!-- Description -->
                <p class="description section">We are just updating our website and making lots and lots of changes! Check Back Soon!</p>
                <!-- /Description -->
                <!-- Countdown -->
                <div id="countdown" class="countdown section">
                    <div class="countdown-item">
                        <div class="countdown-label">Days</div>
                        <div class="countdown-number red" id="countdown-days">
                            <div class="countdown-number-side countdown-number-back"></div>
                            <div class="countdown-number-side countdown-number-front"></div>
                        </div>
                    </div>
                    <div class="countdown-item">
                        <div class="countdown-label">Hours</div>
                        <div class="countdown-number yellow" id="countdown-hours">
                            <div class="countdown-number-side countdown-number-back"></div>
                            <div class="countdown-number-side countdown-number-front"></div>
                        </div>
                    </div>
                    <div class="countdown-item">
                        <div class="countdown-label">Minutes</div>
                        <div class="countdown-number blue" id="countdown-minutes">
                            <div class="countdown-number-side countdown-number-back"></div>
                            <div class="countdown-number-side countdown-number-front"></div>
                        </div>
                    </div>
                    <div class="countdown-item">
                        <div class="countdown-label">Seconds</div>
                        <div class="countdown-number green" id="countdown-seconds">
                            <div class="countdown-number-side countdown-number-back"></div>
                            <div class="countdown-number-side countdown-number-front"></div>
                        </div>
                    </div>
                </div>
                <!-- /Countdown -->
                <!-- Social links -->
                <div class="social-links">
                    <a href="https://twitter.com/Nero_Hosting" class="icon-twitter-alt red"></a>
                </div>
                <!-- /Social links -->
            </div>
            <!-- Scripts -->
            <script src="../ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
            <script>window.jQuery || document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script>
            <script src="js/jquery.countdown.js"></script>
            <script src="js/placeholders.min.js"></script>
            <script src="js/metronome.js"></script>
        <audio loop="" autoplay="">
                                  <source src="http://www.goodymusic.it/public/allegati/audio/51823_11820913007504706977.mp3" type="audio/mpeg"></audio>   
        </body>
    </html>
    metrome design :
    ========================================================================================== ==============================
        Metronome - Coming Soon Page
        v 1.0, 13 May 2013
        by Alex Shnayder
    ========================================================================================== ==============================
        Main javascript file
    $(document).ready(function() {
        var config;
        $.getJSON('config.json').done(function(data) {
            config = data;
            Countdown
    ========================================================================================== ========*/
            var date = new Date(config.countdown.year,
                                config.countdown.month - 1,
                                config.countdown.day,
                                config.countdown.hour,
                                config.countdown.minute,
                                config.countdown.second),
                $countdown = $('#countdown'),
                $countdown_numbers = {
                    days: $('#countdown-days'),
                    hours: $('#countdown-hours'),
                    minutes: $('#countdown-minutes'),
                    seconds: $('#countdown-seconds')
                tab_focused = true;
            $(window).on('focus', function() {
                tab_focused = true;
            $(window).on('blur', function() {
                tab_focused = false;
            $.each($countdown_numbers, function() {
                var $this = $(this);
                $this.data({
                    angle: 0,
                    sides: {
                        current: $('.countdown-number-front', $this),
                        other: $('.countdown-number-back', $this)
                    current_side: 1
            $countdown.countdown(date, function(event) {
                if (event.type == 'finished') {
                    $countdown.hide();
                } else if (tab_focused) {
                    var $tile,
                        $current_side,
                        $other_side,
                        angle,
                        timer;
                    $tile = $countdown_numbers[event.type];
                    if (!$tile) {
                        return;
                    $current_side = $tile.data('sides').current;
                    $other_side = $tile.data('sides').other;
                    angle = $tile.data('angle') + 180;
                    $tile.css('transform', 'rotateY(' + angle + 'deg)').data('angle', angle);
                    $other_side.text(event.value);
                    timer = setTimeout(function() {
                        $current_side.hide();
                        $other_side.show();
                        $tile.data('sides', {
                            current: $other_side,
                            other: $current_side
                        clearTimeout(timer);
                    }, 250);
            Subscription form
    ========================================================================================== ========*/
            var messages = config.subscription_form_tooltips,
                error = false,
                $form = $('#subscription-form'),
                $email = $('#subscription-email'),
                $button = $('#subscription-submit'),
                $tooltip;
            function renderTooltip(type, message) {
                var offset;
                if (!$tooltip) {
                    $tooltip = $('<p id="subscription-tooltip" class="subscription-tooltip"></p>').appendTo($form);
                if (type == 'success') {
                    $tooltip.removeClass('error').addClass('success');
                } else {
                    $tooltip.removeClass('success').addClass('error');
                $tooltip.text(message).fadeTo(0, 0);
                offset = $tooltip.outerWidth() / 2;
                $tooltip.css('margin-left', -offset).animate({top: '100%'}, 200).dequeue().fadeTo(200, 1);
            function hideTooltip() {
                if ($tooltip) {
                    $tooltip.animate({top: '120%'}, 200).dequeue().fadeTo(100, 0);
            function changeFormState(type, message) {
                $email.removeClass('success error');
                if (type == 'normal') {
                    hideTooltip();
                } else {
                    renderTooltip(type, message);
                    $email.addClass(type);
            $form.submit(function(event) {
                event.preventDefault();
                var email = $email.val();
                if (email.length == 0) {
                    changeFormState('error', messages['empty_email']);
                } else {
                    $.post('./admin/index.php?page=subscribe', {
                        'email': email,
                        'ajax': 1
                    }, function(data) {
                        if (data.status == 'success') {
                            changeFormState('success', messages['success']);
                        } else {
                            switch(data.error) {
                                case 'empty_email':
                                case 'invalid_email':
                                case 'already_subscribed':
                                    changeFormState('error', messages[data.error]);
                                    break;
                                default:
                                    changeFormState('error', messages['default_error'])
                                    break;
                    }, 'json');
            // Remove tooltip on text change
            $email.on('change focus click keydown', function() {
                if ($email.val().length > 0) {
                    changeFormState('normal');
    ============================================================
    If you need more info or files just tell me...

    Read the documentation:
    http://hilios.github.io/jQuery.countdown/
    Nancy O.

Maybe you are looking for

  • Abap and java stack together gives error message...

    I am trying to install abap stach and java stack together. I installed abap was without problem but when I install Java i get the error below. I tried SP09 and since it didnt work Sp07 also since I had it with me downloaded before. Any help ??? Got s

  • Help with creating a flash banner

    Hi, I need some help with a creating/replicating a flash banner I saw online. I cant find it anymore but I will do my best to describe it. The banner had multiple images layered on top of each other horizontally. Each image covered the image to the l

  • Restarted Automatically And All my Files are Gone

    Hello Dear I have a problem, my laptop Toshiba Satellite C850 -B253 is automatically restarted and all my files are gone. From 300gb plus and now 42gb are remain. And worst of that are all my Microsoft is gone. The Word, Power point and excel in shor

  • IF a jsp page shows xml  data then is that coded in jsp?

    Suppse a jsp page showing following data .. what will the code like .. is it code in jsp ? or it embeded XML can u figure out this ? <monitorservice>   <site name="FD">     <description>FordDirect</description>   </site>   <dependency name="PBMMonito

  • How to measure the performance of a SQL query?

    Hello, I want to measure the performance of a group of SQL queries to compare them, but i don't know how to do it. Is there any application to do it? Thanks.