SyntaxHighlighter syntax highlighting plug-in instructions. For more information, see. Javascript syntax highlighting
The Code is as follows:
(Function (){
Var el = document. getElementById ("img ");
Var doc=document.doc umentElement, 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 );
})();
})()
CSS syntax highlighting
The Code is as follows:
. Hello {margin: 0; padding: 0 ;}
P {width: 980px ;}
PHP syntax highlighting
The Code is as follows:
$ Tomorrow = mktime (0, 0, 0, date ("m"), date ("d") + 1, date ("Y "));
Echo "Tomorrow is". date ("Y/m/d", $ tomorrow );
Other languages...