") } }
相关
linkcolor property
a string specifying the color of the document hyperlinks.
语法
document.linkcolor
property of
描述
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"
相关
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
描述
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)