Published in Widgets that Work on Monday, November 14th, 2005
Cameron Adams wrote about this already, but I wanted to include this here.
Pingomatic uses a hover behaviour, a hover invitation, that works very well to not only invite people to click on something but to educate them that something is indeed clickable.
What I am talking about is using hover on a label:
Many people are not aware that labels are clickable, and that may be due to the fact that not everybody uses the label tag when building forms, so the behaviour can be inconsistent. By using
label:hover, a person will learn that it is clickable, and your form will become that much easier for that person to use.
Notice that there are two ways to code this, with two different effects:
As expected, this doesn't work in Internet Explorer. Well, until they release something that supports this behaviour, this type of mouse hover could be considered enhancement for people who use better browsers, or you can use whatever:hover by Peter Nederlof to help out your users. Also check out the comments on Cameron's original article on the topic.
I know this isn't an earth shattering widget that works, but I still come across enough forms out there where label isn't even used, let alone enhanced, so I figure it was worth having on the list.
I started freelancing by diving in head first and getting on with it. Many years and a lot of experience later I was still able to take away some gems from this book, and there are plenty I wish I had thought of beforehand. If you are new to freelancing and have a lot of questions (or maybe don't know what questions to ask!) do yourself a favor and at least check out the sample chapters.
Like the other books listed here, this provides a great reference for the PHP developer looking to have the right answers from the right people at their fingertips. I tend to pull this off the shelf when I need to delve into new territory and usually find a workable solution to keep development moving. This only needs to happen once and you recoup the price of the book in time saved from having to develop the solution or find the right pattern for getting the job done..