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

¹ö¶¯Í¼Æ¬Çл»Á¬²¥(JavaScriptÌØЧ | JSÌØЧԴ´úÂë)

·ûºÏ XHTML 1.0 Transitional
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>¹ö¶¯Í¼Æ¬Çл»Á¬²¥</title>
<mce:style type="text/css"><!--
/*ͼƬÇл»Ñùʽ¿ªÊ¼*/
#ImgChangeMain {WIDTH:356px; HEIGHT:160px;margin:auto; overflow:hidden}
#ImgChangeDATA {display:none;visibility:hidden}
.ImgChange1 { FONT-WEIGHT: bold; FONT-SIZE: 12px; WIDTH: 100%; LINE-HEIGHT:26px; TEXT-ALIGN: center;filter:revealTrans(Transition=23,Duration=2) }
.ImgChange1 A { color:#0F0CBF;TEXT-DECORATION: none }
.ImgChange1 A:hover { COLOR: #ff0000; TEXT-DECORATION: underline }
#ImgChangeTitle{ display:block; }
#ImgChangeNUM {FILTER:ALPHA(opacity=70);position:relative;overflow:hidden;z-index:100;height:14px;top:-40px;}
#ImgChangeNUM span { font-size:12px;FONT-WEIGHT: bold; COLOR: #FFFFFF; FONT-FAMILY: Arial ; border-left:1px solid #FFFFFF;background:#666666;cursor:pointer;padding:5px}
/*ͼƬÇл»Ñùʽ½áÊø*/
--></mce:style><style type="text/css" mce_bogus="1">/*ͼƬÇл»Ñùʽ¿ªÊ¼*/
#ImgChangeMain {WIDTH:356px; HEIGHT:160px;margin:auto; overflow:hidden}
#ImgChangeDATA {display:none;visibility:hidden}
.ImgChange1 { FONT-WEIGHT: bold; FONT-SIZE: 12px; WIDTH: 100%; LINE-HEIGHT:26px; TEXT-ALIGN: center;filter:revealTrans(Transition=23,Duration=2) }
.ImgChange1 A { color:#0F0CBF;TEXT-DECORATION: none }
.ImgChange1 A:hover { COLOR: #ff0000; TEXT-DECORATION: underline }
#ImgChangeTitle{ display:block; }
#ImgChangeNUM {FILTER:ALPHA(opacity=70);position:relative;overflow:hidden;z-index:100;height:14px;top:-40px;}
#ImgChangeNUM span { font-size:12px;FONT-WEIGHT: bold; COLOR: #FFFFFF; FONT-FAMILY: Arial ; border-left:1px solid #FFFFFF;background:#666666;cursor:pointer;padding:5px}
/*ͼƬÇл»Ñùʽ½áÊø*/</style>
</head>
<body&


Ïà¹ØÎĵµ£º

ÈçºÎÎÒjavaScript»ñÈ¡´°¿ÚµÄ¸ß¶ÈºÍ¿í¶È

ÔÚjavascriptÖеõ½µ±Ç°´°¿ÚµÄ¸ßºÍ¿í
<body><SCRIPT LANGUAGE="JavaScript">
var  s = "";
s += "\r\nÍøÒ³¿É¼ûÇøÓò¿í£º"+ document.body.clientWidth;
s += "\r\nÍøÒ³¿É¼ûÇøÓò¸ß£º"+ document.body.clien ......

javascript trim·½·¨

ÔÚjavascriptÖеÄstring¶ÔÏóûÓÐtrim·½·¨£¬ËùÒÔtrim¹¦ÄÜÐèÒª×Ô¼ºÊµÏÖ£º
´úÂëÈçÏ£º
Java´úÂë
﹤scriptlanguage=”javascript”﹥   
/**  
*ɾ³ý×óÓÒÁ½¶ËµÄ¿Õ¸ñ  
*/  
String.prototype.trim=function(){      
  &nbs ......

107ÌõJavascriptµÄ³£ÓÃÓï¾ä


1. document.write( " "); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document- >html- >(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window- >(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËصÄÃû³ÆºÍÖµ:document.getElementById( "±íµ¥ÖÐÔªËصÄID號 ").name(»òvalue)
6.Ò ......

JavaScriptµÄä¯ÀÀÆ÷¶ÔÏóÏê½â

JavaScriptµÄä¯ÀÀÆ÷¶ÔÏóÏê½â  
Ò»¡¢ä¯ÀÀÆ÷¶ÔÏó²ã´Î¼°ÆäÖ÷Òª×÷ÓÃ
¶þ¡¢Îĵµ¶ÔÏó¹¦Äܼ°Æä×÷Óà
Èý¡¢·¶Àý 
ʹÓÃä¯ÀÀÆ÷µÄÄÚ²¿¶ÔÏóϵͳ, ¿ÉʵÏÖÓëHTMLÎĵµ½øÐн»»¥¡£ËüµÄ×÷ÓÃÊǽ«Ïà¹ØÔªËØ×éÖ¯°ü×°ÆðÀ´£¬Ìṩ¸ø³ÌÐòÉè¼ÆÈËԱʹÓ㬴Ӷø¼õÇá±à³ÌÈ˵ÄÀͶ¯£¬Ìá¸ßÉè¼ÆWebÒ³ÃæµÄÄÜÁ¦¡£
Ò»¡¢ä¯ÀÀÆ÷¶ÔÏó²ã´Î¼°ÆäÖ ......

javascriptдÔÚº¯ÊýÀïÃæ

javascriptдÔÚº¯ÊýÀïÃæ
function loadscript(url) {
document.write('<scr' + 'ipt  type="text/javascript" src"' + url + '"><\/scr' + 'ipt>'>)
}
Ôڳɹ¦µÄÕýÔò±í´ïʽ²éÕÒÍê³É֮ǰ£¬ÆäÊôÐÔֵΪ undefined¡£
²»Òª½«È«¾Ö RegExp ¶ÔÏóÓë ÕýÔò±í´ïʽ
¶ÔÏó»ìÏý¡£¾¡¹ÜÌýÆðÀ´Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ