Friday, March 6, 2009

JavaScript + Blinking /Flash behind TextBox

Hi today I trying to make a blinking text box and found an important script from the web. I have created a html page and test it. Its really very good script. So if do you want to craete a blinking textbox, go through the following code and you can create your own blinking textbox.

<TITLE> Blinking TextBox </TITLE>
window.Blink = function(args)
args = (/,/.test(args))? args.split(/,/): [args,'#FFD100',10];
var who = document.getElementById(args[0]);
var count = parseInt(args[2]);
if (--count <=0)
{ = '';
if(who.focus) who.focus();
args[2]=count+''; '': args[1];

<BODY onLoad="Blink('name');">
<td width="50"><b>Name:</b></td>
<td width="300">
<input id="name" type="text">
<td width="50"><b>E-mail:</b></td>
<td width="300">
<input id="email" type="text">
<td colspan="2" align="center">
<input type="button" value="Submit" onClick="alert('Your form would have been submitted')">

Vijay Modi

No comments:

Post a Comment