jquery Scoreboard Plug-in

Source: Internet
Author: User

Recent projects have used the scoreboard, you can download the plugin from the internet first

Http://www.jb51.net/jiaoben/133746.html


And then introduce the corresponding CSS file and JS file in the page

<script type= "Text/javascript" src= "jquery.min.js" ></script><script type= "Text/javascript" src= " Jquery.flipcountdown.js "></script><link rel=" stylesheet "type=" Text/css "href=" Jquery.flipcountdown.css "/>
$ (function () {var i = 1;$ (' #retroclockbox_counter '). Flipcountdown ({tick:function () {
Size: ' SM ', Return i++;}})
Where size can be defined in sizes that show fonts from large to small: Lg,md,sm,xs, where there are several pictures (under the IMG folder), with the default style (black) starting with digit, and if you want to change the effect of the scoreboard, you can use the tool to render, but there is a problem after rendering For example, this number should be 1, but he shows 0, 2 shows as 1,0 9, no time to study what happened by the   way to write a correct integer algorithm
JQuery (function ($) {var data=parseint (Ten), middle= "", result= "";var obj2 = (data+middle). Split ("");if (data>=10) {for (Var i=0;i<obj2.length;i++) {if (9==obj2[i]) {result+=0;}else{result+= (parseint (obj2[i)) +1;}}}else{if (9==data) {result=0;}else{result=data+1;}}$ (' #map_legend1 '). Flipcountdown ({
Size: ' SM ',tick:function () {return result;} }); })

jquery Scoreboard Plug-in

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.