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

JavaScript»ù±¾ÊôÐÔ·½·¨²Î¿¼


JavaScript»ù±¾ÊôÐÔ·½·¨²Î¿¼
document.body.scrollTop  ·µ»ØºÍÉèÖõ±Ç°ÊúÏò¹ö¶¯ÌõµÄ×ø±êÖµ£¬ÐëÓ뺯ÊýÅäºÏ,
document.body.scrollLeft  ·µ»ØºÍÉèÖõ±Ç°ºáÏò¹ö¶¯ÎñµÄ×ø±êÖµ£¬ÐëÓ뺯ÊýÅäºÏ£¬
window.status=defaultStatus  ½«×´Ì¬À¸ÉèÖÃĬÈÏÏÔʾ
Obejct.innerHTML ¶ÔÏóObject±êÇ©ÖеÄhtmlÔ´´úÂë
Obejct.outerHTML ¶ÔÏóObjectµÄhtmlÔ´´úÂ루°üº¬±êÇ©±¾Éí£©
Math.MAX_VALUE  JavaScriptÖÐÊýµÄ×î´ó¿ÉÄÜÖµ£»×î´óΪ1.7976931348623157e+308
Math.MIN_VALUE  JavaScriptÖбÈ0´óµÄÊý×ÖµÄ×îС¿ÉÄÜÖµ£»×îСΪ£º5e-324
Math.NaN  ·ÇÊý×ÖµÄÈÎÒâÖµ
Math.NEGATIVE_INFINITY  JavaScriptÖÐСÓÚ×î´ó¸ºÊýµÄÈÎÒâÊý×Ö£»Ò²¾ÍÊÇ˵£¬Ð¡ÓÚ-1.7976931348623157e+308µÄÈÎÒâÊý×Ö
Math.POSITIVE_INFINITY  JavaScriptÖдóÓÚ×î´óÕýÊýµÄÈÎÒâÊý×Ö£»Ò²¾ÍÊÇ˵£¬Ð¡ÓÚ1.7976931348623157e+308µÄÈÎÒâÊý×Ö
Math.E  Å·À­³£Êý£¨E£©£¬½üËÆÖµ£º2.718281828459045
Math.PI  ³£Êý𣬽üËÆÖµ£º3.141592653589793
Math.abs(Number)  NumberµÄ¾ø¶ÔÖµ
Math.acos(Number)  Number£¨±ØÐë½éÓÚ-1ºÍ+1Ö®¼ä£©µÄ·´ÓàÏÒ£¬·µ»ØÖµµÄ·¶Î§ÔÚ0ºÍπ»¡¶ÈÖ®¼ä
Math.asin(Number)  Number£¨±ØÐë½éÓÚ-1ºÍ+1Ö®¼ä£©µÄ·´ÕýÏÒ£¬·µ»ØÖµµÄ·¶Î§ÔÚ-π/2ºÍπ/2»¡¶ÈÖ®¼ä
Math.atan(Number)  NumberµÄ·´ÕýÇУ¬·µ»ØÖµµÄ·¶Î§ÔÚ-π/2ºÍπ/2»¡¶ÈÖ®¼ä
Math.atan2(y, x)  y/x£¨ÕâÀïµÄ£¨x£¬y£©ÊǵϿ¨¶û×ø±êÖµ£©µÄ·´ÕýÇУ¬·µ»ØÖµµÄ·¶Î§ÔÚ-π/2ºÍπ/2»¡¶ÈÖ®¼ä
Math.ceil(Number)  ´óÓÚ»òµÈÓÚNumberµÄ×îСÕûÊý
Math.cos(Number)  NumberµÄÓàÏÒ£¬·µ»ØÖµµÄ·¶Î§ÔÚ-1ºÍ1Ö®¼ä
Math.exp(Number)  EµÄNumber´ÎÃÝ
Math.floor(number)  Ð¡ÓÚ»òµÈÓÚNumberµÄ×î´óÕûÊý£¬ÉáÈ¡ËùÓÐСÊý
Math.log(Number)  NumberµÄ×ÔÈ»¶ÔÊý£¨ÒÔEΪµ×£©
Math.max(Number1, Number2)  ·µ»ØNumber1,Number2µÄ½Ï´óÕß
Math.min(Number1, Number2)  ·µ»ØNumber1,Number2µÄ½ÏСÕß
Math.pow(Number1, Number2)  ·µ»ØNumber1µÄNumber2´Î·½ÃÝ
Math.random()  Ëæ»úº¯Êý,Ö»ÄÜÊÇ0µ½1Ö®¼äµÄÊý,Èç¹ûÒªµÃµ½ÆäËüÊý,¿ÉÒÔΪ*10,ÔÙÈ¡Õû
Math.round(Number)  ×î¿¿½üNumberµÄÕûÊý£¨¶ÔСÊý²¿·ÖËÄÉáÎåÈ룩
Math.sin(Number)  NumberµÄÕýÏÒ£¬·µ»ØÖµµÄ·¶Î§ÔÚ-1ºÍ1Ö®¼ä
Math.sqrt(Number)  Number£¨±


Ïà¹ØÎĵµ£º

ASP.NET+Ajax+JavascriptʵÏÖÒ³Ã涨´Îˢйö¶¯ÄÚÈÝ

Ò»¡¢¸ÅÊö
  Marquee£ºHtmlÖйöÆÁ¿Ø¼þ£¬¿ÉÒÔʹ°üº¬Ôڴ˱ê¼ÇÖеÄÄÚÈݽøÐи÷¸ö·½Ïò£¬¸÷ÖÖËٶȵĹö¶¯£¬Òò´ËÔÚ²»¿¼ÂÇʹÓõÚÈý·½¿Ø¼þµÄÇ°ÌáÏ£¬¿¼ÂÇʹÓÃMarquee+xmlhttpÀ´ÊµÏÖ¶¨´Î¸üÐÂÒ³ÃæÖеĹö¶¯ÄÚÈÝ£¬´ËʵÏÖÔÚIE6.0¼°ÒÔÉÏ°æ±¾²âÊÔͨ¹ý£¬ÆäËûä¯ÀÀÆ÷ÔÝʱδ²âÊÔ¹ý¡£
  MarqueeÖеÄonfinishʼþ£ºÔÚ¸øMarqueeÊôÐÔloop¸ ......

JavaScript ÆÁ±ÎÓÒ¼ü

1¡¢function vv()
    {
        if(event.button==2)
        {
            alert('·ÀÖ¹·þÎñÆ÷¸ºµ£¹ý´ó£¬ÓÒ¼ü¹¦Äܱ»ÆÁ±Î£¡')
       ......

JavaScriptÈçºÎ»ñµÃinputÔªËØvalueÖµ

ÔÚÒ³ÃæÖÐÎÒÃÇ×î³£¼ûµÄÒ³ÃæÔªËؾÍÊÇinputÁË£¬µ«ÊÇÎÒÃÇÈçºÎÓÃJavaScriptµÃµ½ÍøÒ³inputÖÐÊäÈëµÄvalueÖµÄØ£¬ÆäʵºÜ¼òµ¥£¬·½·¨Ò²²»Ö¹Ò»ÖÖ£¬¾ÝÎÒ×ܽá±È½Ï³£ÓõľÍÊÇÏÂÃæµÄÁ½ÖÖ·½·¨£¬Ïл°²»¶à˵ÁË£¬ÏÂÃæÄǾÍÀ´¿´¿´ÎÒ˵µÄ·½·¨°É£º
·½·¨Ò»¡¢



  function print(){
   var a=myform. ......

javascript+css ʵÏÖtab¹¦ÄÜ

<!---------<html>
    <head>
        <style type="text/css">
.tabheader table {
  border-collapse: collapse; /* for IE */
  border-spacing: 0; /* for N6 */
}
.tabheader table tr td {mar ......

javascript¶ÁÈ¡xmlʵÏÖÓ¦ÓóÌÐò²Ëµ¥Ð§¹û

/*Ñùʽ*/
<style type="text/css">
    td{font-size:12px;}
    .item{text-decoration:none;width:100%;height:100%; line-height:22px;cursor:default;color:Black;vertical-align:middle}
    .staticTab{cursor:default;height:22px}
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ