Skip to content


Ubuntu style world clock on web site

snap-clocks

?View Code JAVASCRIPT
<script>
var clocks = new Array(new Array("Beijing","China_Beijing"),new Array("Dublin","Ireland_Dublin"),new Array("San Antonio","USA_Albany"));
showClocks(clocks);
</script>
?View Code JAVASCRIPT
function showClocks(clocks){
	var clock1 = "0031-black.swf";
	var height1 = 50;
	var width1 = 50;
	var clock2 = "5012-black.swf";
	var height2 = 20;
	var width2 = 60;
 
	for (timezone in clocks){
               document.write("<table>");
		document.write("<tr>");
		document.write("<td><embed src=\"http:\/\/www.clocklink.com/clocks/"+clock1+"?TimeZone="+clocks[timezone][1]+"\"  width=\""+width1+"\" height=\""+height1+"\" wmode=\"transparent\" type=\"application/x-shockwave-flash\"></td>");
		document.write("<td>"+clocks[timezone][0]+"
<embed src=\"http:\/\/www.clocklink.com/clocks/"+clock2+"?TimeZone="+clocks[timezone][1]+"\"  width=\""+width2+"\" height=\""+height2+"\" wmode=\"transparent\" type=\"application/x-shockwave-flash\"></td>");
		document.write("</tr>");
		document.write("</table>");
	}
 
}

Posted in MrCongWang.com. Tagged with , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.