JavaScript: Mouse Tricks

Mouse Tricks
Access Image URL to TextBox
When an image is clicked, this script will show the image URL in a textbox. Useful for cases where you want others to be able to copy the image address easily for linking... such as for banners, logo graphics, etc. A single instance of the script can be attached to any number of images in the page.
Amazing Draggable Layer - Use Instead of Popups
This script implements a draggable layer that can be used much like a popup window... but without the usual focus problems that popups often imply. Also included are simple controls to show or hide the draggable layer. Compatible with NS4-7 & IE.
Background Color-Change from Link or MouseOver
Use this script to change the color of the page background from a clicked link or on mouseOver. Any number of colors can be used. Shows how to attach to a regular (clicked) link, or how to activate the color change on a mouseOver. Easy.
Background Image-Change on MouseOver or Link
Use this script to change the background image used by the page, from a clicked link or on mouseOver. Any number of images can be used. Shows how to attach to a regular (clicked) link, or how to activate the background image change on a mouseOver. Easy.
Basic No-Right-Click Script with Alert Box
Causes an alert box to be triggered when the visitor right-clicks on the page with the mouse.  Provides simple, though limited, protection of images, etc.
Capture Mouse X-Y Position [With Mini-Tutorial]
This straightforward, easy script and quick-take mini-tutorial shows how to reliably capture the mouse X and Y positions, dynamically, in NS4-6 and IE 4-6.  Also shows how to display positional values in form fields.
Changing TextArea Background Images on MouseOver
Use this script to apply a background image to a textarea, and change the image on mouseover. The script can also change the text color in response to the mouseover event. An eye-catching effect, and a very easy install.
Dirt-Simple Four-State Mouse-Interactive Image Buttons
Four-state image buttons -- with no multiple images, and no JavaScript?  Darned close!  Plug in a simple style script, attach a few mouse events, and bang -- instant action buttons even most power scripters would sweat to do.  Easy sailing, even for newcomers.
Disabling The Mouse Right-Click Button
Effectively protects your code from prying eyes by disabling the availability of the right-click context menu's View Source option.
Disabling The Mouse Left-Click Button
We don't know exactly why you'd want to do this... but someone asked us for it, so here it is.
Disabling Both Mouse Buttons
A useful technique for display-only pages, as well as protecting your underlying source code.
High-Lighting Form Text On Mouse-Click
This simple script set shows how to highlight (select) the text in a form's textarea by clicking on a link. Useful for code listings, order form information, or other material the visitor may wish to copy to the clipboard with Control+C.
Light 'Em Up Multi-Color Interactive Mouse-Over Links
One of the most-asked questions in our support mail, this very simple technique shows how to add differently colored links to the same page that light up and underline and/or overline on mouseOver. No complex JavaScript calls are required, and the technique is a fundamental building block for interesting, interactive, color-differentiated menu systems.
Light Up, Super-Easy, Glow-In-The-Dark Links
If you're using MSIE, you've undoubtedly noticed that most of our links 'light up' when you pass your mouse over them. Not only a great effect, it helps users navigate your site more quickly and easily. This script shows you how... and it's surprisingly simple to do!
No-Right-Click Script Opens Popup Window
Use this script to launch a popup window whenever the right mouse button is clicked. Useful for limited protection of page code and images; and the popup window can contain whatever fulmination on human morals you wish to deliver.
FLASH! BANG! The action just never ends. You want your site to look great? You want it to stand out from the crowd? You want it to be free of smelly foot odor? Then you MUST MUST MUST have... Go here: FlashBanger's!
Copyright 2001 - 2012 by and OECCorp.
The 2012 Evolution™ is an OEC InterNET Group site.SupportNotices