DynFader
Method Summary
Method |
Description |
addText |
Add text to be scrolled by Dynamic Text Fader |
attachPlaceHolder |
Attach the DynFader to a placeholder |
beginFade |
Causes the DynFader to fade in and fade out the text while scrolling |
setBackground |
Set fader background image |
setDirection |
Set the scrolling direction |
setFont |
Set the font-face, font-weight and text alignment |
setFontSize |
Specifies the font size for an HTML text element |
setGlow |
Make the text glow |
setLoop |
Set the number of loop before stoping |
setPauseMidInterval |
Set the pause interval when the text reaches the middle of the placeholder |
setPauseTextInterval |
Set the pause interval between text |
setSpeed |
Set the scrolling speed |
setTextColor |
Set the text colour in the fader |
start |
Causes the DynFader to start scrolling without fade in and fade out
effect. |
stop |
Stop the DynFader from scrolling and fading |
addText
Add text to be scrolled by Dynamic Text Fader
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.00 |
Syntax
addText(strText)
Parameters
strText
|
Text to be added. May include any HTML tags. |
Back to top
attachPlaceHolder
Attach the DynFader to a placeholder
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.00 |
Syntax
attachPlaceHolder(strPlaceHolderName)
Parameters
strPlaceHolderName
|
Name of placeholder |
Back to top
beginFade
Causes the fader to fade in and out the text while scrolling
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.00 |
Syntax
beginFade()
Parameters
Back to top
setBackground
Set the scrolling direction
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.00 |
Syntax
setBackground(url)
Parameters
Back to top
setDirection
Set fader background image
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.10 |
Syntax
setDirection(iDir)
Parameters
iDir
|
0 = scroll downward
1 = scroll upward |
Back to top
setFont
Set fader background image
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.00 |
Syntax
setFont(strFontFamily, strWeight, strAlign)
Parameters
strFontFamily
|
Specifies the font family, such as Helvetica
or Arial, for an HTML text element. |
strWeight
|
Specifies the weight of the font of an HTML element.
Can be in any of these forms {absolute | relative | numeric}
absolute
|
A string evaluating to either of the following keywords:
|
relative
|
A string evaluating to a weight relative to the weight of the parent
element, indicated by either of the following keywords:
|
numeric
|
A string evaluating to a numeric value between 100 and 900, where 100
indicates the lightest weight and 900 indicates the heaviest weight. |
|
strAlign
|
A string evaluating to any of the following keywords:
-
left
-
right
-
center
-
justify
|
Back to top
setFontSize
Specifies the font size for an HTML text element
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.12a |
Syntax
setFontSize(fontSize)
Parameters
fontSize
|
Can be in any of these forms {absoluteSize | relativeSize | length
| percentage}
absoluteSize
|
A string evaluating to any of the following keywords:
-
xx-small
-
x-small
-
small
-
medium
-
large
-
x-large
-
xx-large
|
relativeSize
|
A string evaluating to a size relative to the size of the parent element,
indicated by either of the following keywords:
|
length
|
A string evaluating to a size followed by a unit of measurement; for
example, 18pt. |
percentage
|
A string evaluating to a percent of the size of the parent element;
for example, 50%. |
|
Back to top
setGlow
Make the text glow.
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.12b
(Internet Explorer only) |
Syntax
setGlow(strength, glowColor, fgColor)
Parameters
strength
|
The strength of the glow |
glowColor
|
The color of the glow |
fgColor
|
Foreground color for the text |
Back to top
setLoop
Set the number of loop before stoping
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.11 |
Syntax
setLoop(loops)
Parameters
setLoop
|
Number of loops before stopping |
Back to top
setPauseMidInterval
Set the pause interval when the text reaches the middle of the placeholder
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.11 |
Syntax
setPauseMidInterval(time)
Parameters
time
|
A numeric value, in millisecond units. |
Back to top
setPauseTextInterval
Set the pause interval between text
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.11 |
Syntax
setPauseTextInterval(time)
Parameters
time
|
A numeric value, in millisecond units. |
Back to top
setSpeed
Set the pause interval when the text reaches the middle of the placeholder
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.11 |
Syntax
setSpeed(speed)
Parameters
Back to top
setTextColor
Set the text colour in the fader
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.00 |
Syntax
setTextColor(strRGB)
Parameters
strRGB
|
Colour in RGB (ex: '#00FF00'). |
Back to top
start
Causes the DynFader to start scrolling without fade in and fade out effect.
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.11 |
Syntax
start()
Parameters
Back to top
stop
Stop the DynFader from scrolling and fading
Method of |
DynFader |
Implemented in |
Dynamic Text Fader 2.11 |
Syntax
stop()
Parameters
Back to top
Copyright (c) 2000 Nicholas Poh