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

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>


Ïà¹ØÎĵµ£º

JavaScript »ñµÃÒ³ÃæÇøÓò´óСµÄ´úÂë

ÍøÒ³¿É¼ûÇøÓò¿í£º document.body.clientWidth
ÍøÒ³¿É¼ûÇøÓò¸ß£º document.body.clientHeight
ÍøÒ³¿É¼ûÇøÓò¿í£º document.body.offsetWidth (°üÀ¨±ßÏߵĿí)
ÍøÒ³¿É¼ûÇøÓò¸ß£º document.body.offsetHeight (°üÀ¨±ßÏߵĸß)
ÍøÒ³ÕýÎÄÈ«ÎÄ¿í£º document.body.scrollWidth
ÍøÒ³ÕýÎÄÈ«Îĸߣº document.body.scrollHeight
ÍøÒ ......

¡¶Îò͸JavaScript¡·Ö® ¸Ê¶ģÐÍ£¨Ð£©


ÔÚÉÏÃæµÄʾÀýÖУ¬ÎÒÃǶ¨ÒåÁËÁ½¸öÓï·¨¸Ê¶£¬Ò»¸öÊÇClass()º¯Êý£¬Ò»¸öÊÇNew()º¯Êý¡£Ê¹ÓÃClass()¸Ê¶£¬ÎÒÃÇÒѾ­¿ÉÒÔÓ÷dz£ÓÅÑŵĸñʽ¶¨ÒåÒ»¸öÀà¡£ÀýÈçǰÀýÖеģº
    
var
 Employee 
=
 Class(Person,    
//
ÅÉÉúÖÁPersonÀà
    
{ ......

JavaScriptÅжϸ÷ÖÖä¯ÀÀÆ÷

function getOs(){  
var OsObject = "";  
if(navigator.userAgent.indexOf("MSIE")>0) {  
   return "MSIE";  
}  
if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){  
  &n ......

Javascript ȡСÊýµãºóÃæNλ

ÓÃJavascriptÈ¡floatÐÍСÊýµãºóÁ½Î»£¬Àý22.127456È¡³É22.13,ÈçºÎ×ö£¿
1. ×µÄ°ì·¨....... [ÎÒ¾ÍÔõô¸ÉµÄ.........]
1function get()
2{
3    var s = 22.127456 + "";
4    var str = s.substring(0,s.indexOf(".") + ......

javascript£º»ñÈ¡ÆÁÄ»¸ß¶ÈºÍ¿í¶ÈµÈÐÅÏ¢

ÍøÒ³¿É¼ûÇøÓò¿í£º document.body.clientWidth
ÍøÒ³¿É¼ûÇøÓò¸ß£º document.body.clientHeight
ÍøÒ³¿É¼ûÇøÓò¿í£º document.body.offsetWidth (°üÀ¨±ßÏߵĿí)
ÍøÒ³¿É¼ûÇøÓò¸ß£º document.body.offsetHeight (°üÀ¨±ßÏߵĸß)
ÍøÒ³ÕýÎÄÈ«ÎÄ¿í£º document.body.scrollWidth
ÍøÒ³ÕýÎÄÈ«Îĸߣº document.body.scrollHeight ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ