Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascript¼¯½õ,¸÷¸öÔªËØËµÃ÷

javascript¼¯½õ
javascriptÊý×é²Ù×÷»ã×Ü
 
javascript¶¯Ì¬´´½¨form±íµ¥ ºÍ ½Úµã¿ØÖÆËµÃ÷
¶¯Ì¬¶ÁÈ¡
javascript:function ctys(_ctag){
ctys1=document.createElement(_ctag);
document.body.appendChild(ctys1);
return ctys1
};
newE1=ctys('<TEXTAREA id=www>');
newE1.cols='150';
newE1.rows='30';
newE2=ctys('BUTTON');
newE2.value="Ö´ÐÐ";
newE2.onclick=function(){
eval(document.getElementById("www").value)
};
alert(1)
 
¶¯Ì¬Ò³Ãæ¿ØÖÆÊ¾Àý
 
javascript:document.write(document.getElementsByTagName('body')(0).innerHTML.match(/<SPAN class=fcgray>([\s\S]*?)<\/SPAN>/ig))
javascript:alert(document.getElementById('tab_c_iframe').style.display="none")
javascript:alert(document.getElementsByTagName('body')(0).innerHTML)
javascript:document.write(document.getElementsByTagName('body')(0).innerHTML)
javascript:var ccc=document.createElement("div");ccc.setAttribute("type","text");ccc.setAttribute
 
("value","11111111111111");ccc.style.marginLeft="8px";ccc.style.marginTop="10px";ccc.style.width="320px"; ccc.style.height="250px"; ccc.style.zIndex="111";
 
==============
 
table
tbody
tr
µÄinnerHTML Ϊֻ¶Á
 
td
tr
tbody
µÄouterHTML Ϊֻ¶Á
 
=========================
 
javascript¼¼ÇÉ£ºsetInterval("Test();",10); // 10ÃëÖÓ·¢ËÍÒ»´Î¸üÐÂÇëÇó·ÀÖ¹ÍøÒ³±í¸ñ±»³Å´óµÄ´úÂ룺
style="table-layout:fixed;word-wrap:break-word; word-break;break-all;"”£¬
vb×Ö·û´®·´Ïòº¯Êý£ºStrReverse,,,
vb×Ö·û´®×Ô¶¯·Ö³ÉÊý×飺split
vb×Ö·ûת»»º¯Êý£ºStrConv
 
ÍøÒ³×Ô¶¯×î´ó»¯´úÂ룺
<script language="javascript">
<!--
window.moveTo(0,0)
window.resizeTo(screen.availWidth,screen.availHeight)
if (top.location !== self.location) {
top.location=self.location;
}
//-->
</script>
 
VB×Ö·û´®º¯Êý:InStrRev(ÕÒÒ»¸ö×Ö·û´®ÔÚÁíÒ»¸ö×Ö·û´®Àï×îºóÒ»´Î³öÏÖµÄλÖÃ,ÓëÖ®Ïà·´µÄÊÇinstr)
ÏÔʾµ±Ç°ÍøÒ³µÄ¸üÐÂʱ¼ä:
 javascript:alert(document.lastModified)
¶ÁÈ¡Õû¸öÍøÒ³ÄÚÈÝ:
javascript:alert(document.documen


Ïà¹ØÎĵµ£º

javascript window.onload ´íÎó:ÉÐδʵÏÖ ½â¾ö°ì·¨

window.onload= someFunction();//Ò³Ãæ±¨ÉÐδʵÏÖ´íÎóʱ²»·ÀÓÃÏÂÃæµÄÊÔһϠ  
window.onload = someFunction;    
window.onload = function (){someFunction();};    
window.onload = Function("someFunction();"); ......

javascript ¶¯Ì¬Ìí¼Óʼþ


<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
    <title></title>
</head>
<body>
       
    <form id="form1">
    <div>
  & ......

JavaScriptÖÐsetAttributeÓ÷¨


ÎÒÃǾ­³£ÐèÒªÔÚJavaScriptÖиøElement¶¯Ì¬Ìí¼Ó¸÷ÖÖÊôÐÔ£¬Õâ¿ÉÒÔͨ¹ýʹÓÃsetAttribute()À´ÊµÏÖ£¬Õâ¾ÍÉæ¼°µ½ÁËä¯ÀÀÆ÷µÄ¼æÈÝÐÔÎÊÌâ¡£
setAttribute(string name, string value)£ºÔö¼ÓÒ»¸öÖ¸¶¨Ãû³ÆºÍÖµµÄÐÂÊôÐÔ£¬»òÕß°ÑÒ»¸öÏÖÓеÄÊôÐÔÉ趨Ϊָ¶¨µÄÖµ¡£
1¡¢ÑùʽÎÊÌâ
setAttribute(class, value)ÖÐclassÊÇÖ¸¸Ä±äclassÕâ¸öÊôÐ ......

ʵÓÃµÄ JavaScript ²âÊÔ¼°Ð§Ñ鹤¾ß

JavaScript ÊÇÒ»¿îÇ¿´óµÄ¹ã·ºÔËÓÃÓÚÏÖ´úWebÕ¾µã¼°Ó¦ÓõĽű¾ÓïÑÔ¡£×÷Ϊһ¸ö¼¼ÒÕ¾«Õ¿µÄ Web ¿ª·¢Õߣ¬ÕÆÎÕJavaScript¿ÉÒÔÔöÇ¿Óû§µÄʹÓÃÌåÑ飬Ìṩ½»»¥¼°¸»¿Í»§¶ËµÈ¹¦ÄÜ¡£
¾¡¹ÜJavaScript µÄÓï·¨·Ç³£¼òµ¥£¬µ«¶ÔÓÚд³ÌÐò¶øÑÔÈÔÈ»ÊÇÀ§ÄÑÖØÖØ£¬¾ÍÊÇÒòΪËüµÄÔËÐл·¾³£º»ùÓÚWebä¯ÀÀÆ÷¡£
ÒÔÏÂÄú¿ÉÒÔ¿´µ½ÊÕ¼¯µÄ8¸öʵÓÃµÄ JavaScrip ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ