Log in

View Full Version : Can I have an image pop up work only when a key is pressed with mousover?



Glen_S
05-07-2009, 04:52 PM
I am using this script (http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/) to have image popups when there is mouseover action on a set of links, and it works very well.

What I want to do now though, is add an "easter egg" to my site so that when a user hovers over a certain text (or image) and presses a key (ctrl, shift or it can be any key) I can have the same image popup function. Search as I will, I can't find anything on using a combination of a keypress and mouseover for a web page.

Is this doable in CSS?, or should I be looking at javascript or something else to do this?

Any other suggestions on how to embed an easter egg are welcome too.

thanks!

bluewalrus
05-08-2009, 05:24 AM
javascript or flash.

Glen_S
05-11-2009, 01:53 PM
Thanks - I thought I would have to go with something like javascript on this, I'll look and see what I can find.