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!
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!