ah sunfighter, that worked perfectly, and indeed, it was just such a small bit of code. i'll definitely start learning js!
also, i have found traces of such thing being possible in css only, but i couldn't make it work myself. obviously that does not mean it's impossible, so if someone knows that would definitely be interesting as well.
thanks a lot for your fast help!