1.Ê×ÏÈÏÂÔØSyntaxHighlighter.
2.½âѹµ½SyntaxHighlighterĿ¼ÖÐ.
3.½¨Á¢HTMLÎļþ:
<pre name="code" class="Ruby">
...Ruby´úÂë...
</pre>
¿ÉÒÔÓ¦ÓÃÔÚpreºÍtextareaÁ½ÖÖHTML±êÇ©ÄÚ,nameΪcode,classΪҪ×ÅÉ«µÄÓïÑÔ,ÏÖÔÚÖ§³ÖC, C#, CSS, Delphi, Java, JScript, Php, Python, Ruby, Sql, VB, XMLÕâЩÓïÑÔ.
4.¼ÓÈëËùÐèµÄCSSºÍJSÎļþ:
<link rel="stylesheet" type="text/css" href="./lib/SyntaxHighlighter/Styles/SyntaxHighlighter.css" />
<script src="./lib/SyntaxHighlighter/Scripts/shCore.js"></script>
<script src="./lib/SyntaxHighlighter/Scripts/shBrushRuby.js"></script>
ÕâÀïÖ»ÓÃÁËRuby,ÆäËûµÄÀàËÆ.
5.½ÓÏÂÀ´¾ÍÊÇÔÚwindowµÄonloadʼþÄÚ,ÈÃSyntaxHighlighter¹¤×÷ÆðÀ´.
window.onload = function() {
dp.SyntaxHighlighter.ClipboardSwf = './lib/SyntaxHighlighter/Scripts/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll("code");
};
Ö®ºó,Ë¢ÐÂÏÂÒ³Ãæ,Äã¾Í»á·¢ÏÖ,´úÂëÒѾ±»×ÅÉÏÁËÏàÓ¦µÄÑÕÉ«ÁË.
ÏÂÔØµØÖ·£ºhttp://code. ......
¶¨Òå±äÁ¿
var test=10;
ʹÓöÔÏóÊôÐÔ
¿ÉÒÔʹÓà . ²Ù×÷·û»ñµÃÊôÐÔ,Ò²¿ÉÒÔʹÓÃÊý×éϱê»ñµÃ,±ÈÈç
for(var prop in document)
document.write(document[prop]+"<br>");
With ÉùÃ÷¶ÔÏó,Ö®ºóÔÙÓõ½¶ÔÏó¾Í²»±ØÉùÃ÷ÁË
with(document){
write("Hello World<br>±êÌâ: ");
write(title);
}
³£ÓöÔÏó
×Ö·û´®¶ÔÏó
big ´ó×ÖÌåÏÔʾ
italics бÌåÏÔʾ
bold ´ÖÌåÏÔʾ
small С×ÖÌåÏÔʾ
blink ÉÁ˸ÏÔʾ
fixed ´ò×Ö»ú×ÖÌåÏÔʾ
fontsize(size) ¿ØÖÆ×ÖÌå´óС
ËãÊõº¯Êýmath¶ÔÏó
ʱ¼äÈÕÆÚ¶ÔÏó
......
ÏÂÃæÊÇÊ®¸ö×îÅ£µÄÒ²ÊÇ×îÁ÷ÐеÄJavascript¿ò¼Ü¡£ËüÃÇÍêÈ«¿ÉÒÔµ£ÈÎĿǰÊÀ½çÉϼ¸ºõËùÓÐһЩºÍAjax¼¼ÊõÏà¹ØµÄºÍͼÐνçÃæÏà¹ØµÄÒ»Çй¦ÄÜ¡£
jQuery
http://jquery.com/
Èç¹û½ñÌìÄ㻹²»ÖªµÀjQueryµÄ»°£¬ÄÇô×÷Ϊһ¸ö³ÌÐòÔ±Äã¿ÉÄÜÕæµÄÊÇ´Ó»ðÐÇÀ´µÄÁË¡£Õâ¿ÖÅÂÊÇAjaxÖÐÓ¦ÓÃ×î¹ãµÄ¿ò¼Ü¡£°üÀ¨ÁËÐí¶àºÜ²»´íµÄUI×é¼þ£¬×ö³öÍøÒ³µÄЧ¹ûÒ²ÊÇÁîÈ˳ƵÀµÄ¡£²»¹ý£¬Ëû×îÅ£µÄÊÇËüµÄÎļþ´óС£¬Ö»ÓÐÇøÇø18K£¬ÊµÔÚÊǾӼÒÂÃÐУ¬ÍøÕ¾¿ª·¢Ö®Ê×Ñ¡¡£
ÏÂÃæÊÇÒ»¸öÈÕÀú¿Ø¼þ£¬ºÜ²»´í°É¡£
Prototype
http://prototypejs.org/
Ò»¸öÃæÏò¶ÔÏóµÄjavascriptÀà¿â£¬°üº¯Á˺ܶàºÜ¶àºÜʵÓõŦÄÜ£¬ºÜ¶àÆäËüµÄ¿ò¼Ü¶¼Ê¹ÓÃÁËËû×÷Ϊ»ù´¡Àà¿â¡£´óС128K£¬Óеã´ó£¬»¹ºÃ¡£ÏÂÃæÒ»ÆäÒ»¸öUIµÄʾÀý¡£
script.aculo.us
http://script.aculo.us/
Õâ¸ö¿ò¼ÜÊÇ»ù´¡ÉÏÃæÄǸö¿ò¼Ü£¨Prototype £©ÉÏ¿ª·¢µÄ£¬Ëü±»°üº¬ÔÚRuby on Rails¿ò¼ÜÖУ¨http://rubyonrails.org/£©¡£
MooTools
http://mootools.net/
ÕâÊÇÒ»¸ö½ô´ÕµÄ£¬Ä£¿é»¯µÄ£¬ÃæÏò¶ÔÏó·ç¸ñµÄjavascript¿ò¼Ü£¬Õâ²¢²»ÊÇÒ»¸öÄÜÖ±½ÓÓÃÉϵÄJavascript£¬ËûÖ÷Òª¸ø³ÌÐòÔ±ÃÇ·½±ãµØ½øÐпª·¢¸ü¸ß¼¶µÄ×é¼þ£¬ÒòΪÕâ¸ö¿ò¼ÜÖ÷ÒªÊÇÃæ¶ ......
/***************************by
garcon1986********************************/
¸ÐлCSDNµÄshan1119 °ïÎÒ½â¾öJavascript²¿·ÖµÄ´íÎó¡£
<mce:script language="JavaScript"><!--
function toggle(id,id2,id3) {
var state = document.getElementById(id).style.display;
if (state == 'block') {
document.getElementById(id).style.display = 'none';
if (id2 != undefined)document.getElementById(id2).style.display = 'none';
if (id3 != undefined)document.getElementById(id3).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';
}
}
// --></mce:script>
<mce:style type="text/css"><!--
#main{
position:relative;
top:20px;
left:20px;
width:200px;
background: lightblue;
}
#hidden {
position:relative;
top:0px;
left:280px;
width:200px;
background: lightgrey;
display: none;
}
#hidden2 {
position:relative;
top:-20px;
left:580px;
width:200px;
background: lightgreen;
display: none;
}
#hidden3 {
position: ......
/***************************by
garcon1986********************************/
¸ÐлCSDNµÄshan1119 °ïÎÒ½â¾öJavascript²¿·ÖµÄ´íÎó¡£
<mce:script language="JavaScript"><!--
function toggle(id,id2,id3) {
var state = document.getElementById(id).style.display;
if (state == 'block') {
document.getElementById(id).style.display = 'none';
if (id2 != undefined)document.getElementById(id2).style.display = 'none';
if (id3 != undefined)document.getElementById(id3).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';
}
}
// --></mce:script>
<mce:style type="text/css"><!--
#main{
position:relative;
top:20px;
left:20px;
width:200px;
background: lightblue;
}
#hidden {
position:relative;
top:0px;
left:280px;
width:200px;
background: lightgrey;
display: none;
}
#hidden2 {
position:relative;
top:-20px;
left:580px;
width:200px;
background: lightgreen;
display: none;
}
#hidden3 {
position: ......
/***************************by
garcon1986********************************/
Java is to
JavaScript what Car is to Carpet
ÂÛ̳½»Á÷£º´óÐ͵Äweb¿ª·¢ÉçÇø
http://www.webdeveloper.com/forum/index.php
W3CschoolsÖÐÎÄÕ¾£º¿ª·¢ÕßµÄʵÓÃ+Ñ§Ï°ÍøÕ¾
http://www.w3school.com.cn/js/index.asp
javascript³£ÓÃÎÊÌâ´ðÒÉ£º
http://jibbering.com/faq/
Mozilla javascriptÉçÇø£º
https://developer.mozilla.org/en/JavaScript
Developer¸öÈËÍøÕ¾£º
javascript ´´Ê¼ÈËÖ®Ò» John resig
£ºhttp://ejohn.org/
http://www.javascript.crockford.com ==
http://www.crockford.com/
http://adactio.com/journal/
http://simonwillison.net/
http://www.webstandards.org/action/dstf/
http://www.kryogenix.org/days/category/software/web/javascript-and-the-dom
http://robertnyman.com/
http://snook.ca/ ......
Hey all,
Since there seems to be a fair bit of disinformation, and utter nonsense,
floating around since my talk at the Black Hat Federal security conference
the other day, I have decided to publish the following papers.
http://www.databasesecurity.com/HackingAurora.pdf
http://www.databasesecurity.com/ExploitingPLSQLinOracle11g.pdf
Whilst the papers were written on the 14th and 21st of October respectively,
Oracle were informed on these issues discussed in these papers on the 11th
and 13th of October 2009.
The slides from the talk can be found here:
http://www.databasesecurity.com/bh-DC2010.pdf
Cheers,
David Litchfield ......