CSS+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:relative;
top:100px;
left:0px;
width:200px;
background: lightpink;
display: none;
}
--></mce:style><style type="text/css" mce_bogus="1">#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:relative;
top:100px;
left:0px;
width:200px;
background: lightpink;
display: none;
}</style>
<div id="main" onclick="toggle('hidden','hidden2','hidden3');">
1
</div>
<div id="hidden" onclick="toggle('hidden2','hidden3')">
1.1
</div>
<div id="hidden2"onclick="toggle('hidden3');">
1.1.1
</div>
<div id="hidden3">
1.1.1.1
</div>
ÔÌû£ºhttp://t
Ïà¹ØÎĵµ£º
»Ø³µµã»÷°´Å¥
Ö»ÐèÔÚ.aspxÒ³Ãæ´úÂëÖмÓÈëÒ»¶ÎJavaScript¼´¿É£º
<script type="text/javascript" language="javascript">
document.onkeydown = Check;
function Check(){ &n ......
¸ù¾Ýä¯ÀÀÆ÷¸´ÖƵ½¼ôÌù°åµÄ¹¦ÄÜ£¬¾ßÌå´úÂëÈçÏ£º
var txt="Òª¸´ÖƵ½¼ôÌù°åµÄÄÚÈÝ";
function copyToClipboard(txt) {
if(window.clipboardData) {
window.clipboardData.clearData();
&nb ......
×î½ü£¬ÎҲο¼£¬¸ù¾ÝÕýÔò±í´ïʽ¹¹½¨DFA£¨È·¶¨µÄÓÐÇî×Ô¶¯»ú£©µÄ¼¼Êõ£¬Íê³ÉÁËÒ»¸ö´ÓÕýÔò±í´ïʽµ½JavaScriptµÄ·ÒëÆ÷¡£
·ÒëÆ÷ÊÇÕë¶ÔchromeºÍfirefoxÉè¼ÆµÄ£¬Ã»ÓÐÔÚÆäËûä¯ÀÀÆ÷ÖвâÊÔ¹ý¡£
Google CodeÉϵÄÔ´´úÂ룺http://code.google.com/p/nephotools/source/browse/#svn/trunk/regexpQuery
regexpQuery.jsÖж¨ÒåÁËregexpQue ......
ÎÒÃÇÖªµÀ£¬javascriptÔÚÖ´ÐÐÆÚʱÊÇÓÉÄÚµ½ÍâÖ´Ðнű¾µÄ£¬ÄÇôÀëÎÒÃǵĽű¾×îÔ¶µÄÈ«¾Ö¶ÔÏ󣬺ܿÉÄÜÒª¿çÔ½¼¸²ã×÷ÓÃÓò¶ÔÄÜ·ÃÎʵ½Ëü¡£²»¹ýÔÚIEÖУ¬´Ó×îÄڲ㵽×îÍâ²ãÒª»¨µÄʱ¼ä±ÈÆäËû¶à³öºÜ¶à¡£¼ÓÖ®£¬javascriptÊÇÒ»ÖÖ½ºË®ÓïÑÔ£¬Ëü±ØÐëÒªµ÷ÓÃDOM¶ÔÄÜÍê³ÉÎÒÃÇ´ó¶àÊýÑ¡Ôñ¡£×îÖøÃûµÄ¾ÍÊÇÑ¡ÔñÔªËØ£¨document.getElementById,documen ......
ʹÓÃä¯ÀÀÆ÷µÄÄÚ²¿¶ÔÏóϵͳ,
¿ÉʵÏÖÓëHTMLÎĵµ½øÐн»»¥¡£ËüµÄ×÷ÓÃÊǽ«Ïà¹ØÔªËØ×éÖ¯°ü×°ÆðÀ´£¬Ìṩ¸ø³ÌÐòÉè¼ÆÈËԱʹÓ㬴Ӷø¼õÇá±à³ÌÈ˵ÄÀͶ¯£¬Ìá¸ßÉè¼ÆWebÒ³ÃæµÄÄÜÁ¦¡£
Ò»¡¢
ä¯ÀÀÆ÷¶ÔÏó²ã´Î¼°ÆäÖ÷Òª×÷ÓÃ
¡¡¡¡³ýÁËÇ°ÃæÌáµ½¹ýµÄÎĵµdocument¶ÔÏóÍ⣬Navigatorä¯ÀÀÆ÷Öл¹ÌṩÁË´°¿Ú£¨Window£©¶ÔÏóÒÔ¼°ÀúÊ·£¨History£©ºÍÎ»Ö ......