Syntax
| blink_set(Enabled, visibleDelay, hiddenDelay) |
Parameters
| BOOL | Enabled | Set to true to enable text blink, or to false to disable it.
| | INT | visibleDelay | Optional. Delay, in milliseconds, when the text is visible.
| | INT | hiddenDelay | Optional. Delay, in milliseconds, when the text is hidden. |
Return value
No value is returned.
Description
Alternatively shows and hides all blink elements in the document.
Blinking a limited number of elements consumes a very reasonable amount of CPU except if the total of the two delays is less than 1000 ms (1 second), or if your page contains more than a couple of blink elements.
Making an element blink
1. Create a blink element as follow:
<BLINK>Important!</BLINK>
|
2.In the onload event of your HTML document, add the following code:
3. If necessary, you can disable blink as follow:
Setting the blinking speed
The default delays are 1500 ms when the element is visible, and 800 ms when it is hidden.
For example, to slow down the blink rate, call the function as follow:
blink_set(true, 3000, 1000)
|
|
|