Valley Hundred Excellent competition end countdown code sharing

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Gu excellent competition is getting closer to the end, my entry station (http://www.qigun.com) has been hanging the countdown code, I feel good, special to share:

Call: <script src= "Placement path/gubaiyou.js" ></script>

Place the code where you want it,

Gubaiyou.js Code:

Document.writeln ("&lt;!--done--&gt;");


Document.writeln ("&lt;div class=\" newsitem\ "&gt;");


Document.writeln ("&lt;b&gt;&lt;align=center&gt;&lt;font color=red Size=4&gt; Valley Hundred Excellent Competition end Countdown &lt;\/b&gt;&lt;\/font &gt; ");


Document.writeln ("");


Document.writeln ("&lt;span id=\" span_dt_dt\ "style=\" Align=center no:1px solid black;background-color: #FFFFFF \ ' &gt; &lt;\/span&gt; ");


Document.writeln ("");


Document.writeln ("&lt;script language=javascript&gt;");


Document.writeln ("&lt;!--");


Document.writeln ("\/\/document.write"); ");


Document.writeln ("");


Document.writeln ("function show_date_time () {");


Document.writeln ("Window.settimeout" ("Show_date_time ()", 1000); ");


Document.writeln ("Birthday=new date (\ 6-1-2009\); \/\/This date is modifiable");


Document.writeln ("Today=new Date ();");


Document.writeln ("timeold= (Birthday.gettime ()-today.gettime ());";


Document.writeln ("sectimeold=timeold\/1000");


Document.writeln ("Secondsold=math.floor (Sectimeold);");


Document.writeln ("msperday=24*60*60*1000");


Document.writeln ("E_daysold=timeold\/msperday");


Document.writeln ("Daysold=math.floor (E_daysold);");


Document.writeln ("e_hrsold= (e_daysold-daysold) *24;");


Document.writeln ("Hrsold=math.floor (E_hrsold);");


Document.writeln ("e_minsold= (e_hrsold-hrsold) *60;");


Document.writeln ("Minsold=math.floor (e_hrsold-hrsold) *60);";


Document.writeln ("Seconds=math.floor (e_minsold-minsold) *60);";


Document.writeln ("span_dt_dt.innerhtml=\" &lt;b&gt;&lt;align=center&gt;&lt;font color=00CC00 size=4&gt;\) + Daysold+\ "Days \" "+hrsold+\" hours \ "+minsold+\" minutes "+seconds+\" seconds \ "+\" &lt;\/b&gt;&lt;br&gt;&lt;\/font&gt;\ "; ");


Document.writeln ("");


Document.writeln ("}");


Document.writeln ("");


Document.writeln ("Show_date_time ();");


Document.writeln ("");


Document.writeln ("\/\/--&gt;");


Document.writeln ("&lt;\/SCRIPT&gt;");

Webmaster Net fifth period SEO Training registration address: http://bbs.admin5.com/thread-917492-1-1.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.