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:
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.