CSS:
<style>
.timeClass {
font-family:arial,verdana,helvetica,sans-serif;
font-weight:normal;
font-size:10pt;
}
</style>
Created by: Sandeep Gangadharan
Web Site: http://www.sivamdesign.com/
var sec = 30; // set the seconds
var min = 02; // set the minutes
if (sec<=9) { sec = "0" + sec; }
time = (min<=9 ? "0" + min : min) + " min and " + sec + " sec ";
if (document.getElementById) { theTime.innerHTML = time; }
SD=window.setTimeout("countDown();", 1000);
if (min == '00' && sec == '00') { sec = "00"; window.clearTimeout(SD); }
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = function() {
addLoadEvent(function() {
<span id="theTime" class="timeClass"></span>
Nguồn bài viết:
Sưu tầm