¹ö¶¯Í¼Æ¬Çл»Á¬²¥(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Öеõ½µ±Ç°´°¿ÚµÄ¸ßºÍ¿í
<body><SCRIPT LANGUAGE="JavaScript">
var s = "";
s += "\r\nÍøÒ³¿É¼ûÇøÓò¿í£º"+ document.body.clientWidth;
s += "\r\nÍøÒ³¿É¼ûÇøÓò¸ß£º"+ document.body.clien ......
ÔÚjavascriptÖеÄstring¶ÔÏóûÓÐtrim·½·¨£¬ËùÒÔtrim¹¦ÄÜÐèÒª×Ô¼ºÊµÏÖ£º
´úÂëÈçÏ£º
Java´úÂë
﹤scriptlanguage=”javascript”﹥
/**
*ɾ³ý×óÓÒÁ½¶ËµÄ¿Õ¸ñ
*/
String.prototype.trim=function(){
&nbs ......
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µÄä¯ÀÀÆ÷¶ÔÏóÏê½â
Ò»¡¢ä¯ÀÀÆ÷¶ÔÏó²ã´Î¼°ÆäÖ÷Òª×÷ÓÃ
¶þ¡¢Îĵµ¶ÔÏó¹¦Äܼ°Æä×÷ÓÃ
Èý¡¢·¶Àý
ʹÓÃä¯ÀÀÆ÷µÄÄÚ²¿¶ÔÏóϵͳ, ¿ÉʵÏÖÓëHTMLÎĵµ½øÐн»»¥¡£ËüµÄ×÷ÓÃÊǽ«Ïà¹ØÔªËØ×éÖ¯°ü×°ÆðÀ´£¬Ìṩ¸ø³ÌÐòÉè¼ÆÈËԱʹÓ㬴Ӷø¼õÇá±à³ÌÈ˵ÄÀͶ¯£¬Ìá¸ßÉè¼ÆWebÒ³ÃæµÄÄÜÁ¦¡£
Ò»¡¢ä¯ÀÀÆ÷¶ÔÏó²ã´Î¼°ÆäÖ ......
javascriptдÔÚº¯ÊýÀïÃæ
function loadscript(url) {
document.write('<scr' + 'ipt type="text/javascript" src"' + url + '"><\/scr' + 'ipt>'>)
}
Ôڳɹ¦µÄÕýÔò±í´ïʽ²éÕÒÍê³É֮ǰ£¬ÆäÊôÐÔֵΪ undefined¡£
²»Òª½«È«¾Ö RegExp ¶ÔÏóÓë ÕýÔò±í´ïʽ
¶ÔÏó»ìÏý¡£¾¡¹ÜÌýÆðÀ´Ï ......