JavaScript : Scripts and Programs : Alerts and Prompts

Disable Left Mouse Button

Visit Disable Left Mouse Button

Causes an alert box to be triggered when the visitor left clicks on the web page with the mouse. You want to use this technique with a little caution and forethought, of course, since it effectively disables any links, etc., on the page where it is used. As to just why and what for you'd use this technique, well, we're a little puzzled about that, too... but someone wrote in and asked for it, so here it is. Only works in Microsoft Internet Explorer, Netscape completely ignores it.

  • Cost: Free

Disabling Both Mouse Buttons

Visit Disabling Both Mouse Buttons

A useful technique for display only pages, as well as protecting your underlying source code. You want to use this technique with caution and forethought, of course, since it effectively disables any mouse action on the page. The technique is most useful in display-only pop ups, as shown in this demo. Note that this technique only works in Microsoft Internet Explorer, Netscape completely ignores it.

  • Cost: Free
JavaScript : Scripts and Programs : Windows and Frames

Change Scrollbar Color Dynamically

Visit Change Scrollbar Color Dynamically

Changes the color of the scrollbars in a page dynamically, via a simple JavaScript function; shows how to attach the scrollbar color change function to links and to mouseOver and other events. The script works in Internet Explorer 5.5 and later and is ignored by other browsers.

  • Cost: Free

TriState Rainbow ScrollBar Script

Visit TriState Rainbow ScrollBar Script

Causes all page scrollbars to blink in three colors; on/off control (optional) can turn effect on and off via links. The script works in Internet Explorer 5.5 and later and degrades gracefully for all other browsers. The script also allows you to adjust the blink speed, the default color when the script is off, and whether you want it to start automatically.

  • Cost: Free