1.显示当前时间 <body onload="showtime()"> <div>当前时间: <span id="clock"></span > </div> <script type="application/javascript"> function showtime()//创建函数 { var nowTime = new Date();//创建时间对象实例 var ho…
<script type="text/javascript"> var intDiff = parseInt(15); //倒计时总秒数量 function timer(intDiff) { index = window.setInterval(function () { var day = 0, hour = 0, minute = 0, second = 0; //时…
<!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-Typ…
<!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-Typ…