javascriptʵÏÖµ¯³ö´ø͸Ã÷Ч¹ûµÄ¿ÉÍ϶¯Í¼²ã
javascriptʵÏÖµ¯³ö´ø͸Ã÷Ч¹ûµÄ¿ÉÍ϶¯Í¼²ã
×î¾ÒòΪÐèÒªÒ»¸öµ¯³öͼ²ãЧ¹û£¬µ¯³öͼ²ãµ¹ÊÇÈÝÒ×ʵÏÖ£¬µ«¾ßÓÐÍ϶¯Ð§¹ûÈ´²»ÖªÔõôȥʵÏÖ£¬ÔÚÍøÉÏ×îÖÕÕÒµ½ÁËÒ»¸öÐèÒªµÄЧ¹û£¬´úÂëÒ²²»¶à£¬Ò»¿´´úÂëµÄ¾«Á¶£¬ÖªµÀÔ×÷ÕßÓ¦¸ÃÊÇjavascript¸ßÊÖ¼¶±ðµÄÈË£¬ÏÖÔÚ¾ö¶¨½èÀ´Ò»Óã¬ÎÒ°ÑËüÂÔ¼ÓÃÀ»¯ºó£¬¿´ÉÏȥЧ¹û»¹ºÜ²»´í¡£
ÓÚÊÇ°ÑËü¼ÇÏÂÀ´£¬ÒÔ±ã½ñºó·½±ãʹÓá£
function openDIV(){
var titleheight = "22px"; // Ìáʾ´°¿Ú±êÌâ¸ß¶È
var bordercolor = "#000099"; // Ìáʾ´°¿ÚµÄ±ß¿òÑÕÉ«
var titlecolor = "#ffff00"; // Ìáʾ´°¿ÚµÄ±êÌâÑÕÉ«
var titlebgcolor = "#000099"; // Ìáʾ´°¿ÚµÄ±êÌâ±³¾°É«
var bgcolor = "#000"; // ÌáʾÄÚÈݵı³¾°É«
var w=600; //¶¨Ò嵯³ö´°¿ÚµÄ¿í¶È
var h=400; //¶¨Ò嵯³ö´°¿ÚµÄ¸ß¶È
var iWidth = document.documentElement.clientWidth;
var iHeight = document.documentElement.clientHeight;
//´´½¨±³¾°DIV //cssTextÊôÐÔ¼æÈݸ÷¸öä¯ÀÀÆ÷
var bgObj = document.createElement("div");
bgObj.setAttribute("id","bgDiv");
bgObj.style.cssText = "width:"+iWidth+"px;height:"+Math.max(document.body.clientHeight, iHeight)+"px;";
document.body.appendChild(bgObj);
//´´½¨²¢ÉèÖÃmsgObj£¬ÇÒÉèÖÃ͸Ã÷¶ÈЧ¹û¸Ã±³¾°É«Îª#000£¬filter:Alpha(Opacity=50);opacity:0.50;
var msgObj=document.createElement("div");
msgObj.setAttribute("id","msgDiv");
&
Ïà¹ØÎĵµ£º
¸ÕÔÚCSDNÉÏ¿´µ½Ò»ÆªJAVASCRIPTµÄÃæÊÔÌâÄ¿£¬ÆäÖÐÓÐÒ»¸öÌâÄ¿ÊǹØÓÚjavascript¹Ø¼ü×ÖµÄÎÊÌ⣬ÊÔ×öÁËһϣ¬½á¹û×ö´íÁË¡£°¦¡£º¹Ò»¸ö
ÓÚÊÇÉÏÍøÕÒÁËһϣ¬Ôڴ˼ǼÏÂÀ´£¬ÒÔ×ÔÃã¡£
Javascript¹Ø¼ü×Ö(Reserved
Words)ÊÇÖ¸ÔÚJavascriptÓïÑÔÖÐÓÐÌض¨º¬Ò壬³ÉΪJavascriptÓï·¨ÖÐÒ»²¿·ÖµÄÄÇЩ×Ö¡£Javascript¹Ø¼ü×ÖÊDz»ÄÜ×÷Ϊ±äÁ¿Ãû
......
½ñÌìÔÚѧϰBomʱÓöµ½ÁËÒ»¸ö´íÎó£º
Static overflow at 7
´íÎóÔÒò£º×Ô¶¨ÒåÁËÒ»¸ö scrollTo()£¬Óëϵͳwindow.scrollTo()³åÍ»£¬ÒÔÖÂÒýÆðËÀÑ»·£¬´Ë´íÎóÔÚµ¯³ö´íÎó¿ò£¬¶øÔÚFFÏÂûÓз´Ó¦£¬µ«functionÒ²²»Ö´ÐС£ÁíÍâ<img src="" onerror=""/>Ò²¿ÉÄܳöÏÖÕâÖÖÇé¿ö¡£ÏêϸÇë²Î¿¼£ºhttp://www.cnblogs.com/S.Sams/archive/200 ......
±¾ÎĽéÉÜÈçϼ¸¸ö·½ÃæµÄÄÚÈÝ:
1.ÈçºÎ´´½¨Êý×é
2.ÈçºÎ¶ÔÊý×é½øÐвÙ×÷£¨Ìí¼Ó,ɾ³ý,¶ÁÈ¡)
3.Êý×é³£¼û·½·¨ºÍÊôÐÔ
ÈçºÎ´´½¨Ò»¸öÊý×é,Ò»°ãµØ¸ù¾Ý³õʼ»¯É趨¼òµ¥·ÖΪ3ÖÖ:
1.µ¥´¿´´½¨Êý×é:
var arr=new Array();
Òªµã:ÓÃnew¹Ø¼ü×Ö´´½¨Êý×é¶ÔÏóArray(),Array()¶ÔÏóÊÇÒ»¸ö±¾µØÀà,¿ÉÒÔÓÃnew´´½¨Ò»¸ö¶ÔÏóºóʹÓÃ
2.´´½¨Ê ......
jsÈçºÎʵÏÖÔÚÒ³ÃæÍêÈ«¼ÓÔغóÖ´ÐÐjavascriptº¯Êý»ò/´úÂëÄØ?
¿ÉÒÔÊÇÒÔϼ¸ÖÖ
<body onload="function name()" > </body >
<script >window.onload=function name </script >
<script language="javascript" for="window" event="onload" >function name(); </script >
µ ......
1.asp.netºô½Ðjs
Response.Write("<script language=javascript>");
&n ......