JavaScript Reference/Javascript Methods — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
- AddChannel
- AddDesktopComponent
- AddFavorite
- AutoCompleteSaveForm
- AutoScan
- ChooseColorDlg
- ImportExportFavorites
- IsSubscribed
- NavigateAndFind
- ShowBrowserUI
- UTC
- abs
- acos
- add
- addBehavior
- addElement
- addImport
- addPageRule
- addReadRequest
- addRule
- alert
- anchor
- appendChild
- appendData
- applyElement
- asin
- assign
- atan
- atan2
- attachEvent
- back
- big
- blink
- blur
- bold
- ceil
- charAt
- charCodeAt
- clear
- clearAttributes
- clearData
- clearInterval
- clearRequest
- clearTimeout
- click
- cloneNode
- close
- collapse
- compareEndPoints
- componentFromPoint
- concat 2
- confirm
- contains
- cos
- createAttribute
- createCaption
- createComment
- createControlRange
- createDocumentFragment
- createElement
- createEventObject
- createPopup
- createRange
- createStyleSheet
- createTFoot
- createTHead
- createTextNode
- createTextRange
- deleteCaption
- deleteCell
- deleteData
- deleteRow
- deleteTFoot
- deleteTHead
- detachEvent
- doImport
- doReadRequest
- doScroll
- dragDrop
- duplicate
- elementFromPoint
- empty
- escape
- eval
- execCommand
- execScript
- exp
- findText
- fireEvent
- firstPage
- floor
- focus
- forward
- fromCharCode
- getAdjacentText
- getAttribute
- getAttributeNode
- getBookmark
- getCharset
- getClientRects
- getData
- getDay
- getElementById
- getElementsByName
- getElementsByTagName
- getExpression
- getFullYear
- getMilliseconds
- getMonth
- getNamedItem
- getSeconds
- getTime
- getTimezoneOffset
- getUTCDate
- getUTCDay
- getUTCHours
- getUTCMilliseconds
- getUTCMinutes
- getUTCMonth
- getUTCSeconds
- getYear
- hasChildNodes
- hasFocus
- hasOwnProperty
- hide
- inRange
- indexOf
- insertAdjacentElement
- insertAdjacentText
- insertBefore
- insertCell
- insertData
- insertRow
- isEqual
- isNaN
- isPrototypeOf
- italics
- item
- javaEnabled
- join
- lastIndexOf
- lastPage
- link
- localeCompare
- log
- match
- max
- mergeAttributes
- min
- move
- moveBy
- moveEnd
- moveRow
- moveStart
- moveTo
- moveToBookmark
- moveToElementText
- moveToPoint
- namedItem
- namedRecordset
- navigate
- nextPage
- normalize
- open
- parentElement
- parse
- parseFloat
- parseInt
- pasteHTML
- pop
- pow
- previousPage
- prompt
- queryCommandEnabled
- queryCommandIndeterm
- queryCommandState
- queryCommandValue
- recalc
- refresh plugin
- releaseCapture
- remove
- removeAttribute
- removeAttributeNode
- removeBehavior
- removeChild
- removeExpression
- removeNode
- removeRule
- replace String
- replaceChild
- replaceData
- replaceNode
- reset
- resizeBy
- reverse
- round
- scroll
- scrollBy
- scrollIntoView
- scrollTo
- select
- setActive
- setAttributeNode
- setCapture
- setDate
- setExpression
- setFullYear
- setHours
- setMilliseconds
- setMinutes
- setMonth
- setSeconds
- setTime
- setTimeout
- setUTCDate
- setUTCFullYear
- setUTCHours
- setUTCMilliseconds
- setUTCMinutes
- setUTCMonth
- setUTCSeconds
- setYear
- shift
- show
- showHelp
- showModalDialog
- showModelessDialog
- sin
- slice
- small
- sort
- splice
- split
- splitText
- sqrt
- start
- stop
- strike
- sub
- submit
- substr
- substring
- substringData
- sup
- swapNode
- tags
- taintEnabled
- tan
- toExponential
- toFixed
- toGMTString
- toLocaleLowerCase
- toLocaleString
- toLocaleUpperCase
- toLowerCase
- toPrecision
- toSource
- toString
- toUTCString
- toUpperCase
- unescape
- unshift
- urns
- valueOf
- write
- writeln
Содержание
"fontColor()" Example
<html>
<body>
<button onclick="var myS = new String("Sample String");
document.write("regular string"+myS.fontcolor("blue"));">
change the font color</button>
</body>
</html>
"fontColor()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"fontColor()" Syntax, Parameters and Note
Note:
Returns a string in the specified color.
Syntax:
stringName.fontColor(param1)
Parameters:
param1 Required; web color name or hexadecimal value in #RRGGBB format.
"fontSize()" Example
<html>
<body>
<button onclick="var myS = new String("Sample String");
document.write("regular string"+myS.fontsize(7));">
change the string font size
</button>
</body>
</html>
"fontSize()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"fontSize()" Syntax, Parameters and Note
Note:
Returns a string in the specified font size.
Syntax:
stringName.fontSize(param1)
Parameters:
param1 Required; a number between 1 and 7.