发布于 2016-12-25 20:56:16 | 50 次阅读 | 评论: 0 | 来源: 网友投递
SyntaxHighlighter JavaScript语法着色库
SyntaxHighlighter (原名:dp.SyntaxHighlighter)是一套在浏览器上对各种代码进行语法着色的独立 JavaScript 库。
(function(){
var el=document.getElementById("img");
var doc=document.documentElement,docBody=document.body;
var oldY=(doc.scrollTop || docBody.scrollTop)+(doc.clientHeight/2 || docBody.clientHeight/2);
(function(){
var nowY=(doc.scrollTop || docBody.scrollTop)+(doc.clientHeight/2 || docBody.clientHeight/2);
oldY+=(nowY-oldY)/10;
el.style.top=Math.ceil(oldY-el.offsetHeight/2) + "px";
setTimeout(arguments.callee,25);
})();
})()
.hello{margin:0;padding:0;}
div{width:980px;}
$tomorrow = mktime(0,0,0,date("m"),date("d")+1,date("Y"));
echo "Tomorrow is ".date("Y/m/d", $tomorrow);