CSS: Using CSS for onMouseOver effects rather than JavaScript
Actually I wanted to write a post about J.R. Rotem and “The Writing Team”, but it’s kinda much… So, instead here’s another CSS-post.
When you want a picture to change, while the cursor hovers over it, you usually use JavaScript’s <onMouseOver> in this way:
<img src=”picture.jpg” onmouseover=”this.src=’hover-picture.jpg’;” onmouseout=”this.src=’picture.jpg’;” />
Although this is the common way, there’s actually another, better and way simpler way to accomplish this hover-effect, which also works when JavaScript is turned off in the browser. … read on!
Via RSS
Via mail
This is my wholly own, personal blog in which I blog whatever I want. Although I come from Germany I blog in English, simply because it's way cooler. Nevertheless I'm not that great English-speaker, that's why my English is creepily crappy from time to time.
Feeds
Comments