เลยไว้ที่นี่ละกันครับ
มีใครพอรู้บ้างไหมครับว่า flash ที่เอาไว้ นับถอยหลัง แล้ว redirect ไปหน้าอื่นน่ะครับ
มีเว็บไหนพอจะมีโค้ดบ้างใหม่ครับ แนะนำหน่อยครับ
พอดีตอนนี้ใช้
โค้ด: เลือกทั้งหมด
<meta http-equiv="Refresh" content="5; url=http://***.***">
โค้ด: เลือกทั้งหมด
<script language='JavaScript'>
var time = 5; //How long (in seconds) to countdown
var page = "http://***.***"; //The page to redirect to
function countDown(){
time--;
gett("container").innerHTML = time;
if(time == 0){
//window.location = page;
}
}
function gett(id){
if(document.getElementById) return document.getElementById(id);
if(document.all) return document.all.id;
if(document.layers) return document.layers.id;
if(window.opera) return window.opera.id;
}
function init(){
if(gett('container')){
setInterval(countDown, 1000);
gett("container").innerHTML = time;
}
else{
setTimeout(init, 50);
}
}
document.onload = init();
</SCRIPT>
พอดี อันที่เป็น javascript ผลออกมาไม่ค่อยสวย เลยอยากให้เป็น flash น่ะครับ
รบกวนหน่อยครับ ขอบคุณครับ