Bài soạn CODE ngay sinh nhật - Pdf 78

<SCRIPT language=JavaScript1.2>
function setcountdown(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}
//////////CONFIGURE THE COUNTDOWN SCRIPT HERE//////////////////
//STEP 1: Configure the countdown-to date, in the format year, month, day:
setcountdown(2010,5,11)
//STEP 2: Change the two text below to reflect the occasion, and message to display on that occasion, respectively
var occasion="Tôi!"
var message_on_occasion="Merry Christmas!"
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countdown area
var countdownwidth='600px'
var countdownheight='40px'
var countdownbgcolor='transparent'
var opentags='<font face="Verdana" size="3pt" color="blue"><b><large>'
var closetags='</large></b</font>'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''
function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
countdown()
}
if (document.all||document.getElementById)
document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')
window.onload=start_countdown
function countdown(){
var today=new Date()

}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"Đã qua rồi Thầy Hạnh ơi! "+closetags
return
}
//else, if not yet
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+"Còn, "+dday+ " ngày, "+dhour+" giờ, "+dmin+" phút, "+dsec+" giây nữa là đến sinh nhật "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"Còn "+dday+ " ngày, "+dhour+" giờ, "+dmin+" phút, "+dsec+" giây là đến sinh nhật "+occasion+closetags
}
setTimeout("countdown()",1000)
}
</SCRIPT>


Nhờ tải bản gốc
Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status