get paid to paste

Code đếm số ngày Blog đã online

<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>

			<td nowrap="nowrap" height="15" style="cursor:default;color:red;" id="cyb_focobj" title="Bắt đầu đếm từ: 28-02-2010" align="center"></td>
		</tr>

	</table>
	<script language="JavaScript" type="text/javascript">
		function VSaFOCSetCountup(theday,themonth,theyear) {
			da = theday, mo = themonth, yr = theyear;
		}
		VSaFOCSetCountup(28,02,2010);

		function VSaFOCCount() {
			prefix = '';
			today = new Date();
			todaym = today.getMonth();
			todayd = today.getDate();
			todayh = today.getHours();
			todaymin = today.getMinutes();
			todaysec = today.getSeconds();
			montharray = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
			todayy = today.getYear();
			if (todayy < 1000)
			{
				todayy += 1900;
			}
			todaystring = montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec;
			paststring = montharray[mo-1]+" "+da+", "+yr;
			dd = Date.parse(todaystring)-Date.parse(paststring);
			dyear = todayy - 2009 - 1;
			dday = Math.floor(dd/(60*60*1000*24)*1);
			dhour = Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
			dmin = Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
			dsec = Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);

			dhourd = "";
			dmind = "";
			dsecd = "";

			if (dday>0) {
				dyearc = ",&nbsp;";
			} else {
				dyearc = "&nbsp;";
			}

			
			dyearc = ",&nbsp;";
			

			if (dday>365) {
				dday = Math.floor(dday - (dyear * 365.24219));
			}
			if (dday<0)
			{
				dday = 365 - (dday * -1);
			}
			if (dday>=365)
			{
				dyear = dyear + 1;
				dday = dday - 365;
			}

			if (dyear==1) {
				dyeard = dyear+"&nbsp;Năm"+dyearc;
			} else if (dyear>1){
				dyeard = dyear+"&nbsp;Năm"+dyearc;
			} else {
				dyeard = "";
			}

			if (dday<=0) {
				ddayd = "";
			} else if (dday==1) {
				ddayd = dday+"&nbsp;Ngày";
			} else {
				ddayd = dday+"&nbsp;Ngày";
			}

			
			if (ddayd) {
				dhourc = ",&nbsp;";
			} else {
				dhourc = "";
			}
			if (dhour==1) {
				dhourd = dhourc+dhour+"&nbsp;giờ";
			} else {
				dhourd = dhourc+dhour+"&nbsp;giờ";
			}
			

			
			if (dmin==1) {
				dmind = ",&nbsp;"+dmin+"&nbsp;phút";
			} else {
				dmind = ",&nbsp;"+dmin+"&nbsp;phút";
			}
			

			
			if (dsec==1) {
				dsecd = ",&nbsp;"+dsec+"&nbsp;giây";
			} else {
				dsecd = ",&nbsp;"+dsec+"&nbsp;giây";
			}
			

			suffix = 'Blog Lê Trung Hiếu  online được <br/>';

			document.getElementById('cyb_focobj').innerHTML = prefix + suffix +dyeard + ddayd + dhourd + dmind + dsecd;
			setTimeout("VSaFOCCount()",1000);
		}
		VSaFOCCount();
	</script>

Pasted: Apr 29, 2010, 11:40:14 pm
Views: 63