01.
<script type=
"text/javascript"
>
02.
03.
function
getSecs() {
04.
var
myTime =
new
Date();
05.
var
mySecs1 =
""
+(myTime.getTime() - clockStart) / 1000;
06.
mySecs1= mySecs1.substring(0,mySecs1.indexOf(
"."
));
07.
08.
if
(mySecs1 ==
""
) { window.open(
"a"
,
"frame1"
); }
09.
else
if
(mySecs1 ==
"10"
) { window.open(
"b"
,
"frame1"
); }
10.
else
if
(mySecs1 ==
"15"
) { window.open(
"c"
,
"frame1"
); }
11.
else
if
(mySecs1 ==
"20"
) { window.open(
"d"
,
"frame1"
); }
12.
else
if
(mySecs1 ==
"25"
) { window.open(
"f"
,
"frame1"
); }
13.
window.setTimeout(
'getSecs2()'
,1000);
14.
15.
}
16.
17.
function
getSecs2()
18.
{
19.
getSecs();
20.
}
21.
22.
</script>