All Levels

Selecting Elements by Properties and DOM Expandos

Sometimes it is very convenient to store information on an element by using custom properties (DOM Expandos). For example, I use DOM Expandos in my Mouse Wheel plugin to store an array of handler methods (_mwHandlers) along with a method (_mwHandler) to call all those handlers when the mouse wheel is used. Storing these methods […]

Accordion Madness

A few weeks ago I wrote about two ways we can achieve the “accordion menu” effect, and I promised to describe a third option. Well, this is it, Option 3. But first, here is a list of my other show-hide-toggle entries, as well as Jörn Zaefferer’s accordion menu plug-in: More Showing, More Hiding Slicker Show […]

Quick Tip – Set Hover Class for Anything

Sometimes it’s nice to be able to give users visual feedback when they hover their mouse over an element on the page. It’s easy to do, of course, with a little CSS: #hover-demo1 p:hover { background: #ff0; } That little style rule changes the background of any paragraph that is a descendant of an element […]

More Showing, More Hiding

We’ve received a number of comments recently from people looking for variations on the showing and hiding theme. For the basics, you can take a look at two earlier entries, Basic Show and Hide and Slicker Show and Hide. For a full-blown plugin solution with lots of options, look no further than Jörn Zaefferer’s Accordion […]

Copy Events from One Element to Another

Need to clone an element and its events? Sure, you could rebind the events after doing the clone, but that wouldn’t be very DRY now, would it? Introducing Copy Events, a new plugin for jQuery.

Effect Delay Trick

Here is a quick trick for getting an effect to delay without using setTimeout. Let’s say, for example, that I want to show an alert message on the page every time a user clicks on a certain button. But I don’t want it to stay there forever; I want it to go away a few […]

Responsive Menu
Add more content here...