Javascript - Display a div box where the mouse pointer stands
Simply copy and paste the following code inside your body tags and run it from a browser.
If you want to see the live result (we believe this is the best way to learn what is the script about), try it here (new window).
For explicit information about the browser detection and problems occuring accross browsers, you check these sources:
http://developer.mozilla.org/en/docs/DOM:event
http://msdn.microsoft.com/...dhtml_overviews_entry.asp
http://msdn.microsoft.com/.../browserdetection.asp
In addition to studying the way it's done to retrieve the mouse coordinates, I have added a bit of CSS code to manage the opacity of a box and the simple visual effect of the same box including the link tag.
Comments
Post the first comment now
or discuss about it at this address:
Forum - Javascript (displaying a box on mouse event)
|
Webmaster Corner
The Millionaire league
Dozens of Easy and Automatic Ways to
Make Money Online Everyday!
Niche Annihilation Method Crush Your Competition! Download the method Now
iPowerWeb

Incredible Membership Packages - Web Hosting!
One Month Free Trial! ProStores - an eBay Company
Gain customers, increase sales, and boost profits with your own Web Store.
→ Get Google Pay-Per-Click Ads Free!
→ Automated Cash Formula $$$

|
Categories
|