User Tag List

Results 1 to 6 of 6

Thread: Testing countdown

  1. #1
    Publisher
    • anik_lc's Gadgets
      • Motherboard:
      • MSI B250M Bazooka
      • CPU:
      • Intel Core i7-7700 Kaby Lake 3.6-4.20GHz 8MG Cache 7th Gen
      • RAM:
      • 2x Corsair Vengeance 8GB DDR4 2400 BUS
      • Hard Drive:
      • Toshiba DT01ACA200 2TB SATA + 1TB Western Digital Blue
      • Graphics Card:
      • Sapphire Nitro + AMD RX 480 8GB GDDR5 OC
      • Display:
      • Samsung 21.5 inch Curved LED
      • Sound Card:
      • Built In
      • Speakers/HPs:
      • Logitech H110 Headphone
      • Keyboard:
      • Perfect CS-556 USB Keyboard
      • Mouse:
      • Delux DLM-137BU Optical USB Mouse
      • Controller:
      • N/A
      • Power Supply:
      • Thermaltake PS-TR2 600W 80Plus Bronze Power Supply
      • UPS:
      • Power Guard 1200 VA
      • Operating System:
      • Windows 10 Pro
      • Comment:
      • Very Satisfied
      • ISP:
      • ICC
      • Download Speed:
      • 300kbps
      • Upload Speed:
      • 400kbps
    anik_lc's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka
    Posts
    18,440

    Default Testing countdown

    HTML Code:
    <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
    <!--
    
    dateFuture = new Date(2011,5,07,9,00,00);
    
    function GetCount(){
    
            dateNow = new Date();                                                                        //grab current date
            amount = dateFuture.getTime() - dateNow.getTime();                //calc milliseconds between dates
            delete dateNow;
    
            // time is already past
            if(amount < 0){
                    document.getElementById('countbox').innerHTML="Now!";
            }
            // date is still good
            else{
                    days=0;hours=0;mins=0;secs=0;out="";
    
                    amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs
    
                    days=Math.floor(amount/86400);//days
                    amount=amount%86400;
    
                    hours=Math.floor(amount/3600);//hours
                    amount=amount%3600;
    
                    mins=Math.floor(amount/60);//minutes
                    amount=amount%60;
    
                    secs=Math.floor(amount);//seconds
    
                    if(days != 0){out += days +" day"+((days!=1)?"s":"")+", ";}
                    if(days != 0 || hours != 0){out += hours +" hour"+((hours!=1)?"s":"")+", ";}
                    if(days != 0 || hours != 0 || mins != 0){out += mins +" minute"+((mins!=1)?"s":"")+", ";}
                    out += secs +" seconds";
                    document.getElementById('countbox').innerHTML=out;
    
                    setTimeout("GetCount()", 1000);
            }
    }
    
    window.onload=function(){GetCount();}//call when everything has loaded
    
    //-->
    </script>
    <div id="countbox"></div>


    ---------- Post added at 19:51 ---------- Previous post was at 19:48 ----------

    Damn. Not working.

    ---------- Post added at 19:52 ---------- Previous post was at 19:51 ----------

    PHP Code:
    <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
    <!--

    dateFuture = new Date(2011,5,7,21,00,00);

    function 
    GetCount(){

            
    dateNow = new Date();                                                                        //grab current date
            
    amount dateFuture.getTime() - dateNow.getTime();                //calc milliseconds between dates
            
    delete dateNow;

            
    // time is already past
            
    if(amount 0){
                    
    document.getElementById('countbox').innerHTML="Now!";
            }
            
    // date is still good
            
    else{
                    
    days=0;hours=0;mins=0;secs=0;out="";

                    
    amount Math.floor(amount/1000);//kill the "milliseconds" so just secs

                    
    days=Math.floor(amount/86400);//days
                    
    amount=amount%86400;

                    
    hours=Math.floor(amount/3600);//hours
                    
    amount=amount%3600;

                    
    mins=Math.floor(amount/60);//minutes
                    
    amount=amount%60;

                    
    secs=Math.floor(amount);//seconds

                    
    if(days != 0){out += days +" day"+((days!=1)?"s":"")+", ";}
                    if(
    days != || hours != 0){out += hours +" hour"+((hours!=1)?"s":"")+", ";}
                    if(
    days != || hours != || mins != 0){out += mins +" minute"+((mins!=1)?"s":"")+", ";}
                    
    out += secs +" seconds";
                    
    document.getElementById('countbox').innerHTML=out;

                    
    setTimeout("GetCount()"1000);
            }
    }

    window.onload=function(){GetCount();}//call when everything has loaded

    //-->
    </script>
    <div id="countbox"></div> 

    Like my Facebook page Gaming Newz for new gaming news updates.

    My Facebook Twitter YouTube Steam

  2. #2
    Noblesse Oblige
    • CvP's Gadgets
      • Motherboard:
      • ASUS P8Z77 V Delux
      • CPU:
      • Intel Core i7 3770K @3.9GHz
      • RAM:
      • GSkill TridentX 2x8GB DDR3 @2400MHz
      • Hard Drive:
      • Crucial M4 256GB SSD; WD Caviar Black 2TB; Hitachi 250GB; Samsung S3 1.5TB; Hitachi 2TB
      • Graphics Card:
      • EVGA 980Ti 6GB
      • Display:
      • Samsung 17&quot;+22&quot;+22&quot;
      • Sound Card:
      • Realtek HD Audio &lt;internal&gt;
      • Speakers/HPs:
      • Creative Inspire 5:1
      • Keyboard:
      • Razer BlackWidow Ultimate
      • Mouse:
      • G7
      • Power Supply:
      • Seasonic X 850W 80Plus Gold
      • Optical Drive:
      • External DVD-RW
      • USB Devices:
      • Logitech Carl Zeiss Tessar HD 1080p Webcam
      • UPS:
      • Mercury 1500VA with Large Lead-Acid Battery
      • Operating System:
      • Genuine Windows 10 Pro
      • Comment:
      • Everything packed in a NZXT Phantom 820
      • ISP:
      • Link3/Amber IT
      • Download Speed:
      • 10000
      • Upload Speed:
      • 10000
    CvP's Avatar
    Join Date
    Feb 2008
    Location
    Dhaka, Bangladesh
    Posts
    9,019

    Default Re: Testing countdown

    You can't post HTML/script (disabled). Create a feature request if you think such a script is useful.
    The abuse of greatness is when it disjoins remorse from power.
    Please do not PM me for support. You will NOT get a reply. Post in the relevant forum section.

  3. #3
    Member
    • Dee's Gadgets
      • Motherboard:
      • Asus Maximus VIII Ranger
      • CPU:
      • Intel Core i5 6600k
      • RAM:
      • G.Skill Ripjaws V 2x8GB DDR4 2400MHz
      • Hard Drive:
      • Samsung 830 128GB SSD; Crucial M500 960GB SSD
      • Display:
      • Dell S2216H
      • Keyboard:
      • Cooler Master Quick Fire Rapid-i Cherry MX Brown
      • Mouse:
      • Cooler Master MasterKeys Lite L
      • Power Supply:
      • Cooler Master V650 Gold
      • Operating System:
      • Windows 10 x64
      • ISP:
      • Link3 GATI
      • Download Speed:
      • 2Mib/s
      • Upload Speed:
      • 2Mib/s
    Dee's Avatar
    Join Date
    Aug 2010
    Location
    Dhaka
    Posts
    4,646

    Default Re: Testing countdown

    FAIL.
    ফেল।
    What the HALE?

  4. #4
    Publisher
    • anik_lc's Gadgets
      • Motherboard:
      • MSI B250M Bazooka
      • CPU:
      • Intel Core i7-7700 Kaby Lake 3.6-4.20GHz 8MG Cache 7th Gen
      • RAM:
      • 2x Corsair Vengeance 8GB DDR4 2400 BUS
      • Hard Drive:
      • Toshiba DT01ACA200 2TB SATA + 1TB Western Digital Blue
      • Graphics Card:
      • Sapphire Nitro + AMD RX 480 8GB GDDR5 OC
      • Display:
      • Samsung 21.5 inch Curved LED
      • Sound Card:
      • Built In
      • Speakers/HPs:
      • Logitech H110 Headphone
      • Keyboard:
      • Perfect CS-556 USB Keyboard
      • Mouse:
      • Delux DLM-137BU Optical USB Mouse
      • Controller:
      • N/A
      • Power Supply:
      • Thermaltake PS-TR2 600W 80Plus Bronze Power Supply
      • UPS:
      • Power Guard 1200 VA
      • Operating System:
      • Windows 10 Pro
      • Comment:
      • Very Satisfied
      • ISP:
      • ICC
      • Download Speed:
      • 300kbps
      • Upload Speed:
      • 400kbps
    anik_lc's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka
    Posts
    18,440

    Default Re: Testing countdown

    Quote Originally Posted by CvP View Post
    You can't post HTML/script (disabled). Create a feature request if you think such a script is useful.
    How to do it?
    This is a countdown timer button code. Wanted to post it in E3 thread. So I was testing it here.

    Like my Facebook page Gaming Newz for new gaming news updates.

    My Facebook Twitter YouTube Steam

  5. #5
    Moderator
    • abir's Gadgets
      • Motherboard:
      • Gigabyte G41M-ES2L | Intel 965 HP
      • CPU:
      • Intel Pentium Dual Core E5400 2.7GHz 800MSB| Intel T5670 Core 2 Duo 1.8GHz 800MHz FSB
      • RAM:
      • (2+2) 4GB DDR II (800MHz) | 1GB RAM
      • Hard Drive:
      • 320 GB SATA Samsung | 160GB SATA
      • Graphics Card:
      • Sapphire Radeon 4770 512MB | Intel GMA X3100
      • Display:
      • DELL Inspiron 18.5&quot; LCD |14.1&quot; TFT LCD
      • Sound Card:
      • Realtek Builtin Audio
      • Speakers/HPs:
      • Creative Inspire 2.1
      • Keyboard:
      • Genius Slimstar 355 Gaming Keyboard | A4Tech Anti RSI (USB PS2)
      • Mouse:
      • A4tech 7K Office (USB)| HP
      • Power Supply:
      • Deluxe DLP 388A 450W
      • Optical Drive:
      • ASUS 16X DVD Drive &amp; Liteon DVDW| Asus DVD RAMRW LightScribe
      • USB Devices:
      • 4GB Apacer Pendrive
      • UPS:
      • OVO 650VA
      • Operating System:
      • Windows 7 x64 | Windows XP SP2 &amp; Ubuntu 9.04
      • ISP:
      • Smile Internet (Bronze)
    abir's Avatar
    Join Date
    Feb 2008
    Location
    Azimpur
    Posts
    7,913

    Default Re: Testing countdown

    Quote Originally Posted by anik_lc View Post
    How to do it?
    This is a countdown timer button code. Wanted to post it in E3 thread. So I was testing it here.
    @anik_lc
    I think here: http://banglagamer.com/forums/projec...typeid=feature

    then @CvP can add as a feature and everyone can then add countdown to threads.

    "Game after game after game, I realized what is most important of my life - FOOTBALL.."
    I bleed red, Man Utd 4ever..
    ---------------------
    অনেক দূরের একলা পথে, ক্লান্ত আমি ফিরি তোমার কাছে, মুখোশ খুলে বসে রই জানলার ধারে..

  6. #6
    Publisher
    • anik_lc's Gadgets
      • Motherboard:
      • MSI B250M Bazooka
      • CPU:
      • Intel Core i7-7700 Kaby Lake 3.6-4.20GHz 8MG Cache 7th Gen
      • RAM:
      • 2x Corsair Vengeance 8GB DDR4 2400 BUS
      • Hard Drive:
      • Toshiba DT01ACA200 2TB SATA + 1TB Western Digital Blue
      • Graphics Card:
      • Sapphire Nitro + AMD RX 480 8GB GDDR5 OC
      • Display:
      • Samsung 21.5 inch Curved LED
      • Sound Card:
      • Built In
      • Speakers/HPs:
      • Logitech H110 Headphone
      • Keyboard:
      • Perfect CS-556 USB Keyboard
      • Mouse:
      • Delux DLM-137BU Optical USB Mouse
      • Controller:
      • N/A
      • Power Supply:
      • Thermaltake PS-TR2 600W 80Plus Bronze Power Supply
      • UPS:
      • Power Guard 1200 VA
      • Operating System:
      • Windows 10 Pro
      • Comment:
      • Very Satisfied
      • ISP:
      • ICC
      • Download Speed:
      • 300kbps
      • Upload Speed:
      • 400kbps
    anik_lc's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka
    Posts
    18,440

    Default Re: Testing countdown

    Click to see Countdown

    ---------- Post added at 23:38 ---------- Previous post was at 23:37 ----------

    Ok. Better.
    Thanks @abir . New feature posted.

    Like my Facebook page Gaming Newz for new gaming news updates.

    My Facebook Twitter YouTube Steam

Similar Threads

  1. Replies: 5
    Last Post: February 27th, 2011, 13:04
  2. Testing
    By CvP in forum Test
    Replies: 74
    Last Post: January 20th, 2011, 05:02
  3. How to reduce Windows Error Recovery countdown timer?
    By VANGUARD in forum Technical Support
    Replies: 4
    Last Post: April 23rd, 2010, 16:03
  4. testing
    By CvP in forum Strategy Discussions
    Replies: 8
    Last Post: January 14th, 2009, 01:47

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 0.19084 seconds with 14 queries.