Blinking Textbox Effect | JavaScriptSource

Blinking Textbox Effect

JavaScriptSource Staff Jun 6, 2007

General

This script will place the cursor in a designated textbox, causing its background to blink a specified color for a pre-determined amount of seconds. This will highlight the textbox on the Web page in order to draw attention to it.


Name:
E-mail:

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: blinkingTextboxEffect.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(9 comments)

Works for me in FF 2.

Lee Oct 31, 2008

It doesn't work with Firefox

Ron Sep 15, 2008

That would defeat the purpose of this particular script. You might want to check over in the [a href="http://javascript.internet.com/text-effects/"]Text Effects[/a] section to find what you're looking for.

Lee Nov 21, 2007

Hi this is great.[br /][br /]Is it possible to make it works for the text only instead of the whole box?[br /][br /]Well let say we set the default value of that textbox:[br /]<input id="name" value="test">[br /][br /]How to make it blinks?[br /][br /]Thanks!

richardson Nov 21, 2007

Works fine for me, James.

Lee Jul 10, 2007