RSS-feed subscription
Newsletter subscription
Atom-feed subscription
Comment-Feed subscription
About

type in your email-address and press enter
Comments RSS icon Via RSS Comments mail icon Via mail
Cartoon me 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.
CSS: Using CSS for onMouseOver effects rather than JavaScript

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!

Written 28.02.2009 by me / no responses yet, write one! / Share and Save / Trackback /

Finally this site is less crappy!

The problem with just having planned the top of a site: The rest of it becomes verrrrry lousy. … read on!

Written 15.02.2009 by me / no responses yet, write one! / Share and Save / Trackback /