Javascript ģ̬´°¿Ú
<html>
<head>
<script language="javascript">
function overlay() {
xyz = document.getElementById("overlay");
xyz.style.visibility = (xyz.style.visibility == "visible") ? "hidden" : "visible";
}
</script>
<style type="text/css">
#overlay {
visibility: hidden;
position: absolute;
left: 0px;
top: 0px;
width:100%;
height:100%;
text-align:center;
z-index: 1000;
background-color:gray;
opacity: 0.8; /*FireFox*/
filter:alpha(opacity=80); /*IE*/
-moz-opacity: 0.8;
}
#overlay div {
width:300px;
 
Ïà¹ØÎĵµ£º
JavaScript µÄ³É¹¦ÈÃÈ˽ò½òÀÖµÀ£¬Îª Web ÍøÒ³±àд JavaScript ´úÂëÒѾÊÇËùÓÐ Web
Éè¼ÆʦµÄ»ù±¾¹¦£¬ÕâÃÅÓÐȤµÄÓïÑÔÔ̲Ø×ÅÐí¶à²»ÎªÈËÊìÖªµÄ¶«Î÷£¬¼´Ê¹¶àÄêµÄ JavaScript ³ÌÐòÔ±£¬Ò²Î´ÄÜÍêÈ«³Ô͸¡£±¾ÎÄ´Ó7¸ö·½Ãæ½²Êö
JavaScript ÖÐÄÇЩÄã²»ºÜÊìÖªµ«·Ç³£ÊµÓõļ¼ÇÉ¡£
¼òÂÔÓï¾ä
JavaScript ¿ÉÒÔʹÓüòÂÔÓï¾ä¿ìËÙ´´½¨¶ÔÏóº ......
javascriptÖжÔÈÕÆÚÊDZȽÏÈõµÄ£¬ÌرðÊÇÈÕÆÚ¸ñʽ»¯ºÍ´Ó×Ö·ûÖлñÈ¡ÈÕÆÚÕâÁ½¸ö¹¦ÄÜÊÇû
Óеģ¬×Ô¼ºÐ´³ÌÐòµÄʱºò·â×°ÁËÕâЩ¹¦ÄÜ£¬·ÖÏíһϣ¬Ï£Íû¶Ô´ó¼ÒÓÐÓá£ÕâЩÀ©Õ¹ÓÐЩÊÇÍøÉÏһЩÅóÓÑдµÄ£¬¾¹ýÎҵĸÄÔ죬ÓÐЩÊÇÎÒ×Ô¼ºÐ´µÄ¡£
º¯ÊýµÄ¹¦ÄÜ·Ö±ðÊÇ£º
Date.prototype.format =
function(format)£º¸ù¾Ý±í´ïʽ½«ÈÕÆÚ¸ñʽ»¯Îª ......
»º´æϵͳÎÒÒÔÇ°ÔÚ²©¿Íд¹ýÁË£¬´ËºóÎÒ¶ÔjavascriptµÄÕÜѧ·¢ÉúºÜ´óµÄ¸Ä±ä¡£ÒÔÇ°ÊǾ¡Á¿±ÜÃâ¶ÔÔÐͽøÐÐÀ©Õ¹µÄ£¬µ«·´¹ýÀ´Ò»Ï룬ÓÐʲô¹Øϵ£¿³ý·ÇÊÇɵ×Ó»òÌرð²ËµÄÈ˲Żá»ìÓöà¸ö¿â£¬ÄÜ»ìÓÿâµÄÈËÒ²Ö»ÓиßÊÖ²ÅÄܱÜÃâÃüÃû³åÍ»µÄÞÏÞΡ£Ê®´óÀà¿âÖУ¬Ç°Ã漸¸ö¶¼ÊǶÔÔÐͽøÐзè¿ñÀ©Õ¹µÄ¡£Ïñmootools£¬´úÂë²»¶à£¬µ«ÄÜʵÔÚ±ÈjQuery¶àÐí¶à ......
window.onload= someFunction();//Ò³Ã汨ÉÐδʵÏÖ´íÎóʱ²»·ÀÓÃÏÂÃæµÄÊÔÒ»ÏÂ
window.onload = someFunction;
window.onload = function (){someFunction();};
window.onload = Function("someFunction();"); ......
JavaScript¾ÍÕâô»ØÊÂ1£º»ù´¡ÖªÊ¶
1 ´´½¨½Å±¾¿é
1: <script language=”JavaScript”>
2: JavaScript code goes here
3: </script>
2 Òþ²Ø½Å±¾´úÂë
1: <script language=”JavaScript”>
2: <!--
3: document.write(“Hello”);
4: // -->
5: </scri ......