javascript

Using JQuery to hide the value of text fields on focus

I created this little snippet (doesn't really warrant a plugin) to remove the default value from a text field when the field receives focus.  If for some reason the field loses focus the field will be refilled with the default value if you did not enter anything.

This is far from spectacular, I know but it's a handy snippet that only requires you to add the swaptextbox to any input field (type of text) to enable it to work.  You can have as many fields on a page that use this effect as you would like :)

Directions:

Firefox 2.x + Mac SWFObject Workaround (White Screen Fix)

I've been using FF3 for a while now so I didn't notice this issue but as soon as I loaded FF2 it was obvious.   Firefox has issues when you dynamicly load flash through SWF object on a Mac.  In FF2 with a Mac all you'll see is a white box that requires you to click on it... then everything will look correct. If you don't want your users to have to click a flash object just to have the page look the way you intended then try the code below.

 

To fix it you just need to force a quick little behind the scenes redraw in javascript:

 

Syndicate content

User login