<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.timers.js"></script>
<script type="text/javascript">
// we will add our javascript code here
$(document).ready(function() {
});
var count=1
function getname(){
alert(count);
count++;
}
function start(){
$("body").everyTime(1000, "getPushedEventTimer", getname, 0);
}
function end(){
$("body").stopTime("getPushedEventTimer", getname);
}
</script>
</head>
<body>
<div>
<input type='button' value='开始' onclick='start()'>
<input type='button' value='结束' onclick='end()'>
</div>
<!-- we will add our HTML content here -->
</body>
</html>