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.


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:


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

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

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!).

Wordpress Users: Step by Step instructions to add ANY Dynamic Drive script to an entire Wordpress theme or individual Post