javascript手冊-l[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 longj 的 blog

") } }

相关

  • anchor object
  • link method

    linkcolor property

    a string specifying the color of the document hyperlinks.

    语法

    document.linkcolor

    property of

    document

    描述

    the linkcolor property is expressed as a hexadecimal rgb triplet or as one of the string literals listed in color values. this property is the javascript reflection of the link attribute of the <body> tag. the default value of this property is set by the user on the colors tab of the preferences dialog box, which is displayed by choosing general preferences from the options menu. you cannot set this property after the htm source has been through layout.

    if you express the color as a hexadecimal rgb triplet, you must use the format rrggbb. for example, the hexadecimal rgb values for salmon are red=fa, green=80, and blue=72, so the rgb triplet for salmon is "fa8072".

    例子

    the following example sets the color of document links to aqua using a string literal:

    document.linkcolor="aqua"
    

    the following example sets the color of document links to aqua using a hexadecimal triplet:

    document.linkcolor="00ffff"
    

    相关

  • alinkcolor, bgcolor, fgcolor, and vlinkcolor properties

    links property

    an array of objects corresponding to link objects in source order. see link object.


    ln2 property

    the natural logarithm of two, approximately 0.693.

    语法

    math.ln2

    property of

    math

    描述

    because ln2 is a constant, it is a read-only property of math.

    例子

    the following example displays the natural log of 2:

    document.write("the natural log of 2 is " + math.ln2)

    相关

  • e, ln10, log2e, log10e, pi, sqrt1_2,
  • 本文关键:javascript
      相关方案
    Google
     

    本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

    go top