具体效果: 代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &q…
draggable class. 实现简单的拖动功能。 /** * Make any html element draggable. * * @constructor * @par…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w…
<html> <head> <script type="text/javascript"> (function() { fu…
<html> <head> <title>JS实现跑马灯效果</title> <style> * { font-size…
<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://w…
<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://w…
<title>JavaScript实现含节日、农历的日历</title> <table cellpadding="0" cells…
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>js 显…
JS把指定日期转换为几秒前、几小时前等格式, 转换后的时间可读性更强。 Date.prototype.toRelativeTime = function(now_threshold…
function getd(date,day){ result=day-(date%7-1); re=result<0?7+result:result; return re;…
在javascritp中,有两个关于定时器的专用函数,分别为: 1.倒计定时器:timename=setTimeout("function();",delayt…