New Revised CSS Library Forums Web Tools
FAQs Awards Usage Terms Contact
Categories
Other Sections
Sweet Ads
Compatibility
Bookmark online:


FF1+ IE5+ Opr7+

Flashing form element

Author: Dynamic Drive

Note: Script rewritten Dec 15th, 02' for increased efficiency and NS6+

Description: Use this DHTML script to make certain form elements flash with glee. It's a great way to draw attention to "important" fields, such as the submit button, etc.

Demo:


Directions: Developer's View

Simply insert the below code to the END of your document, right above the </body> tag:

Select All

Having done the above, you're now ready to give any form element a flashing personality. Just add:

class="flashit"

inside the element's tag you wish to flash. Here's an example:

<form>
<input type="submit" value="Submit" class="flashit">
</form>

Follow the same procedure to apply this flashing trait to multiple form elements, whether they're from the same form or not. The script is robust enough to adopt, and browsers other than IE 4+ and NS6+ will simply see nothing (the effect, that is!).