Netscape 6, Part II: Animation: How to Mimic Blinking - Doc JavaScript | WebReference

Netscape 6, Part II: Animation: How to Mimic Blinking - Doc JavaScript


Netscape 6, Part II: Animation

How to Mimic Blinking

One of the proprietary features of Netscape Navigator is the <BLINK> tag. Although employing blinking is not generally recommended, usability-wise, as it distracts the user from the main content of the page, we'll teach you how to implement it in Netscape 6, nonetheless. Netscape 6 will retire this tag sometimes in the future. Instead, the W3C Standard calls for support of the text-decoration:blink feature in the STYLE attribute. The standard requires browsers to parse the text-decoration element, but does not require the blinking operation itself. Nevertheless, the text-decoration:blink feature is supported by both Netscape Navigator and Netscape 6. It is not supported by Internet Explorer. The following line should blink in Netscape Navigator:

This line should blink in Netscape Navigator

It is defined as:

<BLINK>This line should blink in Netscape Navigator</BLINK>

Once we use the text-decoration instead, we get the following HTML code:


<DIV STYLE="text-decoration:blink">This line should blink in
  Netscape Browsers</DIV>

Check if it's working in your browser:

This line should blink in Netscape Browsers

Both Netscape Navigator and Netscape 6 should blink at this line. Internet Explorer does not support any automatic blinking. The best way to become browser-independent is to implement the blinking yourself, by revealing and hiding the element, automatically.

Next: A Final Word

https://www.internet.com


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: December 18, 2000
Revised: December 18, 2000

URL: https://www.webreference.com/js/column73/8.html