function timeMsg()
{
var t=setTimeout("alertMsg1()",5000);
var t=setTimeout("alertMsg2()",5000);
var t=setTimeout("alertMsg3()",5000);
}
function alertMsg1()
{
location.href = "test.html#1";
}
function alertMsg2()
{
location.href = "test.html#2";
}
function alertMsg3()
{
location.href = "test.html#3";
}
</script>
Tag : PHP, HTML/CSS, JavaScript
ประวัติการแก้ไข 2011-11-07 14:30:14
Date :
2011-11-07 14:29:27
By :
zero1150kfc
View :
972
Reply :
6
No. 1
Guest
var t=setTimeout("alertMsg1()",5000);
var cur_focus=1;
function alertMsg1(){
var num_focus=3;
cur_focus++;
if(cur_focus>num_focus)cur_focus=1;
location.href = "#"+cur_focus;
t=setTimeout("alertMsg1()",5000);
}
var t;
var cur_focus=1;
function wooYayClickHandler ( ){
t=setTimeout("alertMsg1()",5000);
}
function alertMsg1(){
var num_focus=3;
cur_focus++;
if(cur_focus>num_focus)cur_focus=1;
location.href = "#"+cur_focus;
t=setTimeout("alertMsg1()",5000);
}