A lazy/better JQuery way to do CSS Image Rollovers
When it comes to development, I’m a firm believer that laziness is a virtue. If I can write code to do what I need done in as little lines as possible, not only am I doing less typing, but my code is probably going to be more efficient (either that or it’s going to be really hacky).
In the course of web design, I find myself coding rollover images often. I’m a big fan of pure CSS image rollovers, which are quicker to load and don’t deal with JavaScript. However, if you’re dealing with many links that all need a rollover, your css quickly becomes bloated.
JQuery to the rescue!



