Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.
1 to 6 of 6
I have a series of posts, and I want the background-color of my post to get a little darker when you hover over it.. Specifically, I am talking about changing the ‘background-color’ property of a div (which contains my post content) to a different value when the mouse is held over it like the post list at the North x East blog.
I searched around for a script to do this and I found the Techpatterns.com Javascript Class Switcher which I tried out. At first it seemed like the script would work fine, until I realized that the script does not work well if you have more elements inside the element that has the hover effect. That didn’t make too much sense, I know, but that part isn’t really important. It didn’t work like I wanted.
Here’s my HTML and CSS if you want to look at it. There are two sets, one with the “Javascript Class Switcher” code included and another set without the script.
body {
behavior:url("csshover.htc");
}
1 to 6 of 6