Script47 Posted January 17, 2014 Share Posted January 17, 2014 So I have this image on this my site, when you get in the radius of the image the cursor will change. So as you see before you get in to the actual image it changes, so I was wondering how could I remove them spaces? Quote Link to comment Share on other sites More sharing options...
sniko Posted January 17, 2014 Share Posted January 17, 2014 With Javascript you can capture the mouse X and Y; which you can then manipulate. #pseudo code because.... a) Fetch image top leftmost X and Y co-ordinate b) Fetch cursor co-ordinates c) ??? d) Profit. Quote Link to comment Share on other sites More sharing options...
Script47 Posted January 18, 2014 Author Share Posted January 18, 2014 With Javascript you can capture the mouse X and Y; which you can then manipulate. #pseudo code because.... a) Fetch image top leftmost X and Y co-ordinate b) Fetch cursor co-ordinates c) ??? d) Profit. So tell me if I've understood what you mean, find the co-ordinates of my image, then when they reach that then trigger it to make it that they have entered the image otherwise no? Quote Link to comment Share on other sites More sharing options...
Alan Posted January 18, 2014 Share Posted January 18, 2014 Something along the lines of - http://jsfiddle.net/P5aW3/ Quote Link to comment Share on other sites More sharing options...
Script47 Posted January 18, 2014 Author Share Posted January 18, 2014 (edited) Something along the lines of - http://jsfiddle.net/P5aW3/ Perfect buddy, thanks for the help. :) Edit: Out of curiosity is there no way to solve this issue using PS or Paint.NET? Or anything without JS? Edited January 18, 2014 by Script47 Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted January 20, 2014 Share Posted January 20, 2014 No need for javascripting use http://www.image-maps.com and get the html map. There are other online websites that offer it also. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.