Login   Register  
Icontem

File: sample.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dixan Santiesteban  >  Country Flag  >  sample.html  >  Download  
File: sample.html
Role: Example script
Content type: text/plain
Description: Sample web page
Class: Country Flag
Get the country code and flag for a given country
Author: By
Last change: Sample web page
Date: 2012-06-07 08:03
Size: 799 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="cou_info.class.js"></script>
<style>
LABEL { display:inline-block; }
</style>

<title>Country info</title>
</head>

<body>
</body>
</html>

<script>

	
	$(function(){
		var a=new country_info();
		for (var t=0; t<242; ++t){
			var cod = a.country_code(t)
			var cou = a.country_name(t)
			$(document.body).append(t+'.- <label class="fl_'+cod+'">&nbsp;</label> '+cou+"<br>");
		}
		
	})
	
	
	
</script>