Software
Java
JavaScript
Delphi
HomeJavascript

JavaScript: Miscellaneous Scripts

Miscellaneous Scripts
2-Way Background Images SlideShow
This script runs an image slideshow in the *background* of the page, underneath the page content. In the first method, the images are discretely positionable in the page space, just like a regular slideshow. In the second method, the slideshow runs with full page-space presentation. An easy install.
.
4-Flasher Background Color Effect
When the page opens, this script rapidly cycles the page background through four different colors and then to the page fixed color. A striking page-opener effect that does *not* depend on MSIE transitions. Easy.
.
Accent JavaScript Web-Based Browser
The Accent JavaScript browser is a complete, basic, fullscreen web-based browser implemented in a JavaScript script set, including the core controls (Location Box with Go button, and Home, Back, Stop, Forward, and Close Buttons). Clean, simple, slick design, this is a solid starting point for building your own site-based browser, and a good demo of basic techniques. Easy to 'rebrand' to your own site. Full code listings are provided, as well as a download 'kit' with all code, ready to run, with no modification needed. Freeware.
.
Accept Focus Until Closed
This is a simple technique, but one we've been asked for very often. When you open a window and wish to keep it 'on top' of all others until closed, all you need do is add this small snippet to the body tag.
.
Access Control By Screen Size
With an increasing number of standard screen resolutions in use, it's often necessary to do separate designs for each. Use this script to control access and redirect to separate pages based on 640, 800, 1024, or larger screen sizes. The script includes optional alert messages, which can be enabled or disabled via a script variable. Thorough instructions are in the script, and set-up is easy.
.
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.
.
Adding An Icon With Your URL - Two Methods
You've probably noticed those cool icons that show up in the URL box and with Favorites (bookmarks) in IE5. Here are two super-easy methods to do it, along with information on icon creation and troubleshooting.
.
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.
.
Auto-Sizing Image Popup Window Script
Use this script to launch a popup window that automatically loads an image and resizes itself to fit neatly around that image. The script also places a title you set in the titlebar of the popup window. Any number of images can be launched from a single instance of the script.
.
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.
.
Background Image Scroller
Use this script for to create a stunning page effect by scrolling the background image underneath your page content. Includes variable scroll speed, and is very simple to install. Also see the horizontal version, here.

.
Blocking JavaScript Errors
Place this simple script in the <head> ... </head> of the page to block JavaScript errors in the page. We've found this useful with page material from sources other than our own that may contain errors (ad banners, automated news feeds, 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.
.
Change Style Sheets On-The-Fly from Page Links
Use this script to allow visitors to change a page style sheet on-the-fly, by clicking on a link in the page. The script works by switching the active style sheets. You can use any number of style sheets, which are automatically detected by the script. Optional alerts are included. Setup is easy and straightforward. Comes as a complete kit, as well as in the usual listings format.
.
Disabling The MyImage Toolbar in IE6+
IE6+ incorporates a new feature called the MyImage Toolbar, which, if enabled on Tools > Internet Options > Advanced > Enable Image Toolbar, provides the user with a popup menu over images that allows the user to instantly save, print, or email any image in a page. This technical note shows how to disable or enable this feature.
.
Formatting Background, Font, and Sticky Selection in Dropdowns
This script sets font face, size, color, style and background color in dropdowns. Optionally, you may set sticky selection, which changes the action of the dropdown slightly. Great for getting larger fonts for emphasis or for the visually impaired -- or just to dress up otherwise bland dropdowns.
.
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.
Invoking The SaveAs Dialog From A Web Page
IE4+ browsers provide a document.execCommand() that can call certain system dialogs. This script demonstrates calling the SaveAs dialog to save a web page. The script includes onload interlocking and alternate alert messaging for non-IE browsers.
.
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.
Copyright 2001 - 2012 by CodeFoot.com and OECCorp.
The 2012 Evolution™


LegalPrivacyCodeFoot.com is an OEC InterNET Group site.SupportNotices
CodeBrain.com BrainCode.com CodeFoot.com CodeBelly.com CodeLifter.com
PopUpWorks.com Droiddd.com etLux.com OECCorp.com
TrayApps.com DavidSosnowski.com MicroTicker.com