I’m a bit of a jQuery novice and I’m looking to create an interactive rollover: Rollover a small image and have a HTML window move respectively with the mouse cursor.
I love the look and feel of JQZoom – but when rolling over the small image I’d like the zoomed area to be actual HTML (images and live type) rather than a static image.
The thought of muddling through figuring out percentage based cursor locations when over the small image and transposing that into a div of html (with hidden overflow) BOGGLES MY MIND!!!
I crave the advice of jQuery ninjas out there!
Transposing the mouse position is exactly what you want and quite simple. Observe:
HTML:
CSS:
JS (with jQuery):
Consider your mind, UNBOGGLED. 😀