spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column73


Netscape 6, Part II: Animation

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


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

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