Wednesday, March 31, 2010

Add a text to text box, hide when it is clicked, show when clicked out

My Friend Ukesh gave me this code, thanks to him for saving my time.

<input name="q" id="search_text" type="text" value="- Search -" onfocus="clearDefaultText(this)" onblur="clearDefaultText(this)" style="background:none"/>
<script>
function clearDefaultText(field){

if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;

}
</script>

Tuesday, March 23, 2010

Embed Flash - swf file in website

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100" height="90">
<param name="movie" value="/videos/TGP.swf" />
<param name="quality" value="high" />
<embed src="/videos/TGP1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="293" height="275"></embed>
</object>

Sunday, March 21, 2010

ruby conference - India, Bangalore 2010

Me @ Ruby conf, Bangalore. - 20-3-2010




Seasons Hall, Royal orchid. The great man sitting is ola bini


priya, me, veera, shiv, uthiravel

21-3-2010





updating blog & twitting



my Boss Senthil, Uthiravel, me



Very Excited meeting Obie Fernandez. wht a man!!! wht a programmer!!

Tuesday, March 2, 2010