O'Reilly logo

MooTools 1.3 Cookbook by Jay Larry G. Johnston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Showing a notification to a user that glows momentarily

Usability means making interfaces that really speak to users; speak volumes by getting their attention.

Getting ready

Whenever we are getting ready to introduce elements that move or grow or appear or disappear, we always take into consideration non-sighted users. Be ready for disabled users.

How to do it...

Prepare a form element that has a message that follows the element in the DOM. Any error message can be written there, perhaps some message regarding validation of the element. Let us just whimsically play a name game to demonstrate.

<form action="" method="get"> <label for="name">Name: </label> <input type="text" name="name" value=""/> <span id="error_message"></span> <br/> <input type="button" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required