home    egovision web resource centre    


JavaScript Copy 'n' Paste Library

Open & Close pop-up windows:
In HEAD:

In BODY tag:

To Activate. 1) Links:

2) FORM buttons:

3) As roll-overs:

View source button:

Force browser window to 800x600:

Load child pages into parent FRAMESET:

Checks browser and plug-ins:

Redirect according to browser and version:

Find on this page:
In HEAD:

In BODY:

Add to Bookmarks:
In HEAD:

The Link:

Make this my Explorer 4/5 start page:

Make this my Netscape start page:

Version 4 browser check:

DHTML Moving Background:

JavaScript to open multiple frames:

JavaScript mouse trail:
In HEAD:

In BODY:

Closing a Window:

JavaScript Audio:

Add to IE4 Favorites:

Cross-browser print:

Print button (IE only):
HEAD section:

BODY section:

Script to direct browsers to load index page:

Wiper text in the status bar:
In HEAD section:

In BODY tag:

Popup Alert box:

JavaScript test for browser version, safety check:

Makes the script only work on netscape 3 and on all browsers with a version number higher than 4.

New browser window with defined attributes:
in HEAD section

The 0 means "no" and a 1 means "yes"
then, when you make your link, you give:

New window with timeout:
This will open a new window called "MyWindow", and the new window will contain the HTML page "pagename.htm". The window will be 450 wide, by 55 high (change this to match whatever size window you want).
The Important part here, is the "setTimeout" statement. This will force the window you just opened, to close in 25000 milliseconds, or 25 seconds...

Display text rather than URL in the status bar:

Random image generator:
This will do 4 random images. In the HEAD section:

This goes where you want the image to appear:

Scrolling status-bar text:
In the HEAD section:

In BODY tag:

egovision


Copy 'n' Paste Library

HTML Library

JavaScript Library

The egovision copy 'n' paste libraries are provided as an easy source for handy snippets of mark-up. We've all been in the situation when you just can't quite remember the HTML to embed a media file, or the JavaScript that opens a new window. Our way of managing this has been to compile our own code libraries, which we now make available to the public.

All you need do is select the text inside the relevant TEXTAREA, copy and paste. It's as simple as that.

If you have any requests for the cut'n'paste libraries, or would like to make a submission, please contact us via our response form.