Welcome! Log In Create A New Profile

Advanced

7 billion people on 1 page

Posted by Shado77968239 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar 7 billion people on 1 page
April 12, 2013 04:21PM
Ain't the web amazing!

7 billion people on 1 page

Some interesting web stuff for the weekend.

____________________________________________Nazi Coder____________________________________________

I'm not antisocial, I'm just not user friendly

"It's not a bug; it's an undocumented feature!" ~ some unknown Microsoft developer
Re: 7 billion people on 1 page
April 15, 2013 08:18AM
LOL did you actually count? I went dizzy looking at it.
Re: 7 billion people on 1 page
April 27, 2013 09:00PM
Awesome stuff!

78026962 afojonny
avatar
Mac
Re: 7 billion people on 1 page
April 29, 2013 08:06AM
A few lines of PHP will generate this page. That is awesome too!

Language: PHP
<table border=0 width=100%> <?php for($i=1; $i < 7,000,000,001; $i++) { // or do it for Europe totals, and repeat for Africa etc. if($i==1){ echo "<tr>";}//';get the 1st row to start with a <tr> echo "<td><img=man.jpg></td>"; //show image if($i % 8 == 0) {echo "</tr></tr>";} // how many images in a row before you start new row } ?>

All that is needed is just a JavaScript overlay that shows the current number as provide by $i.
Sorry, only registered users may post in this forum.

Click here to login