JavaScript Scripts





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Free Java Script Codes
Javascript List All
Slide Show Slide Show
Ad Display Ad Display
Image Effect Image Effect
Animated Image Effects Animated Image Effects
Form Validation Form Validation
Color Picker Tool Color Picker Tool
Formatting Forms Formatting Forms
Select All Select All
Dynamic Form Select Dynamic Form select
Dynamic Color Dynamic Color
Calendar Script Calendar
Textbox Counter Textbox Counter
Alphanumeric Alphanumeric
Date Time Script Date & Time
Stop Watch Script Stop Watch script
Delete Repeated Values Delete Repeated Values
Pagination Pagination
Random Generator Random Generator
Animated Text Animated Text
Cursor Position Cursor Position
User Info Window / User Info
Security Security / Authenticate
Bookmark Bookmark
Mouse Effects Mouse Effects
Title Bar Title Bar
Status Bar Status Bar
Country List Country List
Free Games Free Games
Calculators Calculators
 




World Population Counter


About
This free javascript helps you to estimate the current world population. This free java script is developed based on simple math calculation, this java script increases 2.4452 people per second.This script mainly used for find the people statistics.


Features
a) This javascript helps you to estimate worlds current population.
b) This Java script increases by 2.4452 people per second. It finds the people statistics.
c) Just copy and use for free.

Preview

world population(Statistics):  people



Code
<!--        Script by hscripts.com          -->
<!--        copyright of HIOX INDIA         -->
<!-- more scripts @ http://www.hscripts.com -->
<script type="text/javascript">
function counter() {
    popstat=5946422755;
    poprate=2.4452;
    today=new Date()
    statsdate = new Date("February 1, 1999");
    offset = today.getTimezoneOffset()*60*1000
    diffpop = (( today.getTime() + offset ) - statsdate.getTime() ) / 1000
    var newpop = Math.ceil(popstat + (diffpop * poprate));
    newpop = "" + newpop;
    p1 = newpop.substring(0,1)
    p2 = newpop.substring(1,4)
    p3 = newpop.substring(4,7)
    p4 = newpop.substring(7,10)
    var pops= p1 + "," + p2 + "," + p3 + "," + p4;
    var popul = document.getElementById("poo");
    popul.innerHTML = pops;
    setTimeout('counter()',200);
}
</script>
<!-- Script by hscripts.com -->

Release Date - 07-04-2008
Get free version without ©copyright link for just 5 price

For customization of this script or any script development, contact us at support@hscripts.com


Usage
1.) Copy and paste the above javascript code in <head> tag.
2.) Just copy the below code where you want to print the people counter.
      Population:- <span id="poo" style="font-weight: bold"></span>people
3.) Now just call the function counter() as follows inside the <body> tag.
      <body onLoad="counter()">
Note:
     The counter starts only if the function counter() is called inside the <body> tag.



License
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
Other Links

web hosting