Affiliate Program

Sunday, January 1, 2012

Menampilkan Pesan Setiap 2 Detik

Kode JavaScript untuk membuat tampilan pesan setiap 2 detik, Langsung saja lihat coding di bawah ini


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">
function go_timer() {
    alert('a');
    window.setTimeout('go_timer();', 2000);
}
</script>
</head>
<body onload="go_timer()">
</body>
</html>

No comments:

Post a Comment