摘要:<scripttype="text/javascript">varxmlhttp=null;try{xmlhttp=newActiveXObject("Microsoft.XMLHTTP");}catch(e){try{xmlhttp=newXMLHttpRequest();}catch(e){alert("xmlhttp创建失败");}}functionstate_Change(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){varmes=xmlhttp.respo
阅读全文
摘要:1 把以下代码保存成JsSleep.javapublic class JsSleep extends java.applet.Applet{public void sleep(int ms){try{Thread.sleep(ms);}catch(Exception e){}}}2 编译成JsSleep.class3 在BODY中添加<applet id="sleepapp" code="JsSleep.class" height="5" width="147"></applet>4 在JS
阅读全文
摘要:网页可见区域宽:document.body.clientWidth 网页可见区域高:document.body.clientHeight 网页可见区域宽:document.body.offsetWidth (包括边线的宽) 网页可见区域高:document.body.offsetHeight (包括边线的宽) 网页正文全文宽:document.body.scrollWidth 网页正文全文高:document.body.scrollHeight 网页被卷去的高:document.body.scrollTop 网页被卷去的左:document.body.scrollLeft 网页正文部分上:wi
阅读全文
摘要:<script type="text/javascript">function zh(){ var xmlHttp=null; try { xmlHttp=new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari, IE7 } catch(e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); //old IE } catch(e) { alert("浏览器不支持此功能"); return; } } var url
阅读全文
摘要:只需要在代码<head>和</head> 之间插入:<style> html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);}</style>
阅读全文