随笔分类 -  JavaScript

显示时间倒计时
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <script type="text/javascript"> var maxtime = 3 * 60 * 60 //一个小时,按秒计算,自己调整! function CountDown() { if (maxtime >= 0) { hours = Math.floor(maxtime / 3600) minutes = Math.floor((maxtime - 3600 * hours) / 60); se 阅读全文

posted @ 2013-01-23 13:56 程序小民工 阅读(143) 评论(0) 推荐(0)

一个文字横向滚动的JavaScript文档
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script language="JavaScript"> with (top.window.location) {baseURL = href.substring (0,href.lastIndexOf ("/") + 1)}total_toc_items = 0;current_overID = "";last_over 阅读全文

posted @ 2013-01-22 13:48 程序小民工 阅读(150) 评论(0) 推荐(0)

一个时钟显示的JavaScript文档
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <style type="text/css"><style></style> <title>时钟</title> <script language="JavaScript"> function showClock() { } function hideClock() { } var timerID = null var timerRunnin 阅读全文

posted @ 2013-01-22 13:37 程序小民工 阅读(150) 评论(0) 推荐(0)

这是一个获取WEB浏览器信息的程序
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <script language="JavaScript"><!-- // --> function makeArray(n) { this.length = n return this } function hexfromdec(num) { hex = new makeArray(1); var hexstring = ""; var shifthex = 16; var temp1 阅读全文

posted @ 2013-01-22 13:26 程序小民工 阅读(176) 评论(0) 推荐(0)

导航