Returns the absolute value of a number.
Math.abs(number)
number is any numeric expressi NAME="absEntry"><P>The absolute value is:<INPUT TYPE="text" NAME="result"><P><INPUT TYPE="butt ></FORM>
Returns the arc cosine (in radians) of a number.
Math.acos(number)
number is a numeric expressi NAME="userName" >
The following example sets the color of active links to aqua using a hexadecimal triplet:
document.alinkColor="00FFFF"
Creates an htm anchor that is used as a hypertext target.
text.anchor(nameAttribute)
text is any string or a property of an existing object.
nameAttribute is any string or a property of an existing object.
string
Use the anchor method with the write or writeln methods to programatically create and display an anchor in a document. Create the anchor with the anchor method, then call write or writeln to display the anchor in a document.
In the 语法, the text string represents the literal text that you want the user to see. The nameAttribute string represents the NAME attribute of the <A> tag.
Anchors created with the anchor method become elements in the anchors array. See the anchor object for informati msgWindow=window.open("","displayWindow") msgWindow.document.writeln(myString.anchor("c [TARGET="windowName"]> anchorText</A>HREF=http://www.dedecms.com/web-art/htmlbase/Javascript/20020827/locati specifies a tag that becomes an available hypertext target within the current document.
TARGET="windowName" specifies the window that the link is loaded into. This attribute is meaningful has no effect.
The anchors object has no properties. The anchors array has the following properties:
Returns the arc sine (in radians) of a number.
Math.asin(number)
number is a numeric expression between -1 and 1, or a property of an existing object.
Math
The asin method returns a numeric value between -pi/2 and pi/2 radians. If the value of number is outside the suggested range, the return value is always 0.
// Displays the value 1.570796326794897 (pi/2)document.write("The arc sine of 1 is " + Math.asin(1))// Displays the value -1.570796326794897 (-pi/2)document.write("<P>The arc sine of -1 is " + Math.asin(-1))// Displays the value 0 because the argument is out of rangedocument.write("<P>The arc sine of 2 is " + Math.asin(2))
Returns the arc tangent (in radians) of a number.
Math.atan(number)
number is either a numeric expression or a property of an existing object, representing the tangent of an angle.
Math
The atan method returns a numeric value between -pi/2 and pi/2 radians.
// Displays the value 0.7853981633974483document.write("The arc tangent of 1 is " + Math.atan(1))// Displays the value -0.7853981633974483document.write("<P>The arc tangent of -1 is " + Math.atan(-1))// Displays the value 0.4636476090008061document.write("<P>The arc tangent of .5 is " + Math.atan(.5))
无忧站长学院,建站自然无忧www.5ucms.org
上一篇:5ucms仿站,JavaScript 实现动态增加、删除表单域 下一篇:5ucms培训,javascript手冊-b |
|
本站声明:本网站所载文章等内容,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权及其它问题,请在30日内与本网联系(Email:3876307#qq.com),我们将在第一时间删除内容。若原创内容转载请注明出处。 5ucms仿站,javascript手冊-a的关键词: |