//ÈÃij¶Î´úÂëÑÓʱִÐÐ
function delayRun(code, time) {
var t = setTimeout(code, time);
}
Ó¦ÓþÙÀý£º
<input type="button" name="query" value="ͳ¼Æ" class="long_button" onClick="return delayRun('onQuery()', 1000);"> ......
<script language="javascript">
//none±íʾ²»ÏÔʾ°´Å¥
document.getElementById("transFund_bttn").style.display = "none";
document.getElementById("transFundGether_bttn").style.display = "none";
document.getElementById("payGether_bttn").style.display = "none";
function query(){
var r;
for(var i=0;i<2;i++)
if(document.forms[0].isGenerated[i].checked)
r = document.forms[0].isGenerated[i].value;
if (r == "true"){
document.getElementById("transFund_bttn").style.display = "";
document.getElementById("transFundGether_bttn").style.display = "";
document.getElementById("payGether_bttn").style.display = "";
}else{
document.getElementById(" ......
//Ìí¼Ó°´Å¥¶¨ÒåÖеİ´Å¥
function addBtnRow() {
var table = document.getElementById('btnList');
var rownum = table.rows.length;
var newrow = table.insertRow(rownum);
var newcell = newrow.insertCell();
newcell.innerHTML = "<input name='checkbox' type='radio' value='1'><input name='flags' type='hidden' value='1' ><input name='confIds' value='' type='hidden' /> "+rownum;
newcell = newrow.insertCell();
newcell.innerHTML = "<input name='bvalue' value='' type='text' style='width:100%' >";
newcell = newrow.insertCell();
&nbs ......
JavaScriptÔÊÐí´´½¨ºÍ´ò¿ª´ú±íHTMLÎı¾, form¶ÔÏóºÍframeµÄ´°¿Ú. window¶ÔÏóÊÇJavaScript¿Í»§²ã´Î½á¹¹µÄ×î¶¥²ã¶ÔÏó, formÔªËØºÍÈ«²¿JavaScript´úÂë¶¼ÊÇ´æÔÚÓÚÎĵµÖÐ,¶øÎĵµ±»×°Ôؽø´°¿Ú. ΪÁËÀí½â´°¿ÚÔõÑù¹¤×÷,Äã¿ÉÒÔ¿ØÖƲÙ×÷ÕâЩ´°¿Ú.
´ò¿ªºÍ¹Ø±Õ´°¿Ú
µ±Óû§Æô¶¯(launch)Navigatorʱ,½«×Ô¶¯´´½¨Ò»¸ö´°¿Ú.Óû§»¹¿ÉÒÔʹÓÃNavigatorµÄFile²Ëµ¥ÉϵÄNew Web Browser´ò¿ªÒ»¸ö´°¿Ú, ¿ÉÒÔÓÃNavigatorµÄFile²Ëµ¥µÄClose»òExit¹Ø±ÕÒ»¸ö´°¿Ú.Ò²¿ÉÒÔÓóÌÐòµÄ°ì·¨À´´ò¿ª»ò¹Ø±ÕÒ»¸ö´°¿Ú.
´ò¿ª´°¿Ú
Ó÷½·¨open´´½¨Ò»¸ö´°¿Ú.ÏÂÃæÓï¾ä´´½¨ÁËÒ»¸öÃûΪmsgWindowµÄ´°¿Ú,²¢Ôڸô°¿ÚÄÚÏÔʾÎļþsesame.htmlµÄÄÚÈÝ.
msgWindow=window.open("sesame.html")
ÏÂÃæµÄÕâ¸öÓï¾äÄܹ»´´½¨Ò»¸öÃûΪhomeWindowµÄ´°¿Ú,ÓÃÓÚÏÔʾNetscapeµÄhome page.
homeWindow=window.open("http://www.netscape.com")
´°¿Ú¿ÉÒÔÓÐÁ½¸öÃû×Ö.ÏÂÊöÓï¾ä´´½¨ÁËÒ»¸öÓÐÁ½¸öÃû×ֵĴ°¿Ú,µÚÒ»¸öÃû×ÖΪmsgWindowÓÃÓÚÒýÓô°¿ÚµÄÊôÐÔ,·½·¨ºÍ°üº¬¹ØÏµ, µÚ¶þ¸öÃû×ÖdisplayWindowÓÃÓÚ°Ñ´°¿Ú×÷ΪformÌá½» »ò³¬Îı¾Á´µÄ¶ÔÏóÀ´ÒýÓÃʱ.
´´½¨´°¿Úʱ,²¢²»ÒªÇóÒ»¶¨¸ø³ö´°¿ÚÃû.µ«ÊÇÄãÈô´òËã´ÓÁíÒ»¸ö´°¿ÚÖÐÒýÓô˴°¿Ú,Ôò´Ë´°¿Ú±ØÐëÓÐÒ»¸ ......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return false;" ·ÀÖ¹¸´ÖÆ
5. <link rel="Shortcut Icon" href="favicon.ico"> IEµØÖ·À¸Ç°»»³É×Ô¼ºµÄͼ±ê
6. <link rel="Bookmark" href="favicon.ico"> ¿ÉÒÔÔÚÊղؼÐÖÐÏÔʾ³öÄãµÄͼ±ê
7. <input style="ime-mode:disabled"> ¹Ø±ÕÊäÈë·¨
8. ÓÀÔ¶¶¼»á´ø×Å¿ò¼Ü
<script language="JavaScript"> <!--
if (window == top)top.location.href = "frames.htm"; //frames.htmΪ¿ò¼ÜÍøÒ³
// --> </script>
9. ·ÀÖ¹±»ÈËframe
<SCRIPT LANGUAGE=JAVASCRIPT> <!--
if (top.location != self.location)top.location=self.location;
// --> </SCRIPT>
10. ÍøÒ³½«²»Äܱ»Áí´æÎª
<noscript> <*** src="/*.html>"; </***> </noscript>
11. <input type=button ......
JavascriptÖÐ×î³£ÓõÄ55¸ö¾µä¼¼ÇÉ
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return false;" ·ÀÖ¹¸´ÖÆ
5. <link rel="Shortcut Icon" href="favicon.ico"> IEµØÖ·À¸Ç°»»³É×Ô¼ºµÄͼ±ê
6. <link rel="Bookmark" href="favicon.ico"> ¿ÉÒÔÔÚÊղؼÐÖÐÏÔʾ³öÄãµÄͼ±ê
7. <input style="ime-mode:disabled"> ¹Ø±ÕÊäÈë·¨
8. ÓÀÔ¶¶¼»á´ø×Å¿ò¼Ü
<script language="JavaScript"> <!--
if (window == top)top.location.href = "frames.htm"; //frames.htmΪ¿ò¼ÜÍøÒ³
// --> </script>
9. ·ÀÖ¹±»ÈËframe
<SCRIPT LANGUAGE=JAVASCRIPT> <!--
if (top.location != self.location)top.location=self.location;
// --> </SCRIPT>
10. ÍøÒ³½«²»Äܱ»Áí´æÎª
<noscript> <*** src="/*.html>"; </***> </noscri ......