JavaScriptʵÏÖÒ³ÃæÌø×ªµÄ¼¸ÖÖ·½Ê½
1. °´Å¥Ê½£º
¡¡¡¡<INPUT name="pclog" type="button" value="GO" onClick="location.href='http://xxxx.cn/'">
¡¡¡¡
2. Á´½Óʽ£º
¡¡¡¡<a href="javascript:history.go(-1)">·µ»ØÉÏÒ»²½</a>
¡¡¡¡<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">·µ»ØÉÏÒ»²½</a>
¡¡¡¡
3. Ö±½ÓÌø×ªÊ½£º
¡¡¡¡<script>window.location.href='http://www.xxxx.cn';</script>
¡¡¡¡
4.¿ªÐ´°¿Ú£º
¡¡¡¡<a href="javascript:" onClick="window.open('http://www.xxxx.html','','height=500,width=611,scrollbars=yes,status=yes')">·îÌì³ÐÔË</a>
5. ×Ô¶¯Ìø×ª£º
<html>
<head>
<title>newpaeg</title>
</head>
<script language='Javascript'>
function go(){
window.location="http://www.sohu.com"; //Ìø×ªµ½http://www.sohu.comÒ³Ãæ£¬×ªÖÁͬһĿ¼»¹ÊÇÆäËüÍøÒ³¿´Äã¸øµÄµØÖ·ÁË
}
setTimeout("go()",5000);
/5ÃëÖÓºóÖ´ÐÐgo()
}
</script>
<body>
</body>
</html>
Ïà¹ØÎĵµ£º
scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐĿǰ¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×î¶¥¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×î¶¥¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......
<html>
<head>
<title>test javaScript</title>
//cssÉèÖÃͼÏñµÄ͸Ã÷¶È
<mce:style><!--
img
{
filter:alpha(opacity=10)
}
--></mce:style><style mce_bogus="1">img
{
filter:alpha(opacity=10)
}</style>
<mce:script type="text/javasc ......
ÔÚÉÏÃæµÄʾÀýÖУ¬ÎÒÃǶ¨ÒåÁËÁ½¸öÓï·¨¸Ê¶£¬Ò»¸öÊÇClass()º¯Êý£¬Ò»¸öÊÇNew()º¯Êý¡£Ê¹ÓÃClass()¸Ê¶£¬ÎÒÃÇÒѾ¿ÉÒÔÓ÷dz£ÓÅÑŵĸñʽ¶¨ÒåÒ»¸öÀà¡£ÀýÈçǰÀýÖеģº
var
Employee
=
Class(Person,
//
ÅÉÉúÖÁPersonÀà
{
......
JavaScriptºËÐļ¼Êõ
http://book.jqcq.com/product/620915.html
±¾Êéͨ¹ýÐí¶à»ùÓÚWebµÄÀý×ÓչʾÁË£ºÈçºÎ¹¹½¨JavaScriptÂß¼ºÍ½«ËüÓëÏÖÓеĶÔÏó½á¹¹Á¬½Ó£¬ÈçºÎ¹¹½¨×Ô¼ºµÄ³ÌÐò¿âÒÔ¼°ÈçºÎÀûÓÃÆäËûJavaScriptÓû§±àдµÄ³ÌÐò¿â¡£
JavaScript ÍêÈ«ÊÖ²á JavaScript ÍêÈ«ÊÖ²á
http://book.jqcq.com/product/320819.html
......
substr() ·½·¨¿ÉÔÚ×Ö·û´®ÖгéÈ¡´Ó start ϱ꿪ʼµÄÖ¸¶¨ÊýÄ¿µÄ×Ö·û.
stringObject.substr(start,length);start±ØÐë,length¿ÉÑ¡.
start ÊǽØÈ¡µÄ¿ªÊ¼Î»ÖõÄϱê,´Ó0¿ªÊ¼ËãÆð,±ØÐëÊÇÊý×Ö.¿ÉÒÔÊǸºÊý,-1Êǵ¹ÊýµÚÒ»¸ö×Ö·û,-2Êǵ¹ÊýµÚ¶þ¸ö×Ö·û,ÒÔ´ËÀàÍÆ.
length ÊÇÒª½ØÈ¡µÄ×Ö·ûµÄ³¤¶È,±ØÐëÊÇÊý×Ö.Èç¹ûδָ¶¨,Ôò´ÓstartλÖô¦¿ ......