JavaScriptÖеÄwindow¶ÔÏó
window¶ÔÏó£ºÃ¿Ò»¸ö¸Ã¶ÔÏó´ú±íÒ»¸öä¯ÀÀÆ÷´°¿Ú
1.³£Ó÷½·¨ÈçÏÂ
open("Òª´ò¿ªµÄÒ³ÃæÎļþÃû","´ò¿ª´°¿ÚÔÚ²Ù×÷ϵͳÖеÄÃû³Æ(ÈκÎÃû³Æ¶¼¿ÉÒÔ)",
"toolbar=?,menubar=?,top=?,left=?,width=?,height=?")
Òª´ò¿ªµÄÒ³ÃæÎļþÃû£ºµ±ÆäΪµ¥¶ÀµÄÒ»¸öÎļþÃûʱ£¬Ôò¸ÃÎļþ±ØÐëÓ뵱ǰӦÓóÌÐòÔÚͬһ¸öĿ¼Ï£¬·ñÔò±ØÐëд³öÍêÕûµÄÎļþ
·¾¶ºÍÎļþÃû
toolbar,menubar£º¿ØÖÆ´ò¿ªµÄÒ³ÃæÊÇ·ñº¬Óй¤¾ßÀ¸ºÍ²Ëµ¥À¸£¬È¡ÖµÎªYes/No
top,left£º¿ØÖÆÒ³ÃæµÄ×óÉϽǾàÀëÆÁÄ»×óÉϽǵÄλÖÃ
width,height£º¿ØÖÆ´ò¿ªÒ³ÃæµÄ¿íºÍ¸ß
close()£º¹Ø±ÕÒ»¸öä¯ÀÀÆ÷´°¿Ú
alert(String s)£ºµ¯³öÒ»¸öÏûÏ¢¿ò£¬ÏûÏ¢¿òÖеÄÄÚÈÝΪs
confirm()£ºµ¯³öÒ»¸öÈ·ÈÏ¿ò
promt()£ºµ¯³öÒ»¸öÌáʾ¿ò
setTimeout(º¯ÊýÃû,time)£º¶¨Ê±ÉèÖ㬱íʾÔÚÒ»¶¨µÄʱ¼ätimeºó×Ô¶¯Ö´Ðиø¶¨µÄº¯Êý
clearTimeout(timer)£ºÈ¡ÏûÀûÓÃsetTimeoutµÄ¶¨Ê±ÉèÖÃ
setIntervel(º¯ÊýÃû,time)£º±íʾÿ¸ôtimeÖ¸¶¨µÄʱ¼ä¼ä¸ôÖ´ÐÐÒ»´Î¸ø¶¨µÄº¯Êý
2.³£ÓÃʼþÈçÏÂ
location="./Ò³ÃæµØÖ·"£º±íʾ½«µ±Ç°ÍøÒ³Ìøתµ½Ö¸¶¨µØÖ·µÄÒ³Ã棻Ìøתºóä¯ÀÀÆ÷ÉϵÄÒ³ÃæÎļþÃûΪÌøתºóµÄÒ³ÃæÎļþÃû
onload=º¯ÊýʼþÃû£ºÒ³Ãæ´ò¿ªÇ°Ö´ÐеÄʼþ
&n
Ïà¹ØÎĵµ£º
<SCRIPT language=javaScript>
<!--
now = new Date(),hour = now.getHours()
if(hour < 6){document.write("Á賿ºÃ!")}
else if (hour < 9){document.write("ÔçÉϺã¡")}
else if (hour < 12){document.write("ÉÏÎçºÃ£¡")}
else if (hour < 14){document.write("ÖÐÎçºÃ£¡")}
else if (hour &l ......
B.1 anchor¶ÔÏó
¡¡¡¡Ê¹ÓÃ<A NAME=>±ê¼Ç´´½¨µÄhtmlÃèµãÄܱ»Ò»¸öÁ´½Ó×÷ΪĿ±êÈç¹ûêµã°üÀ¨HREF=ÌØÐÔ,ÔòËüÒ²ÊÇÒ»¸öÁ´½Ó¶ÔÏó¡£
¡¡¡¡anchor¶ÔÏóÊÇdocument¶ÔÏóµÄÒ»¸öÊôÐÔ,Ëü±¾ÉíûÓÐÊôÐÔ·½·¨»òÕßʼþ´¦Àí³ÌÐò¡£
¡¡¡¡B.2 anchorsÊý×é
¡¡¡¡anchorsÊý×éÊÇdocument¶ÔÏóµÄÒ»¸öÊôÐÔ,ÊÇÎĵµÄÚËùÓÐanchor¶ÔÏóµÄÒ»¸öÁбíÈç¹ ......
ÀûÓÃjsÀ´¶¯Ì¬´´½¨±í¸ñÓÐÁ½ÖÖ¸ñʽ£¬appendChild()ºÍinsertRow¡¢insertCell()¡£Á½ÖÖ·½Ê½Æäʵ²î²»¶à£¬µ«µÚÒ»ÖÖÓпÉÄÜÔÚIEÉÏÓÐÎÊÌ⣬ËùÒÔÍƼö´ó¼ÒʹÓõڶþÖÖÁË£¬Ö±½Ó˵°É¡£
1¡¢inserRow()ºÍinsertCell()º¯Êý
insertRow()º¯Êý¿ÉÒÔ´ø²ÎÊý£¬ÐÎʽÈçÏ£º
insertRow(index)£ºindex´Ó0¿ªÊ¼
Õâ¸öº¯Êý½«ÐÂÐÐÌí¼Óµ½indexµÄÄÇÒ»ÐÐÇ ......
//̽²âͼƬÊÇ·ñ´æÔÚ
function IsExist(url)
{
x = new ActiveXObject("Microsoft.XMLHTTP")
x.open("HEAD",url,false)
x.send()
return x.status==200
}
ÅжÏijһ¸öÍøÂçµØÖ·µÄͼƬÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬¾Í»á·µ»Øtrue ,²»´æÔھͷµ»Ø false~~~~ ......
ÈÕÖ¾ÔÎÄ£ºhttp://zzgziyu.blog.sohu.com/109589244.html
<script>
("<html
xmlns:v><style>v\\:*{behavior:url(#default#VML)}</style>")
var
ct1=new ct()
function ct(){
="green,yellow,red,blue,gray,purple".split(",")
&nb ......