Random Background on Page Load - Neils Resource WebRandom Background on Page Load - Neils Resource WebNEILS RESOURCE WEB - WEB DEV. - Design - Random Background



Summary of Content
A random (predefined in the script) background will be chosen when the page loads. Use the button to see it in action. The text colours can also be changed to complement each background.

A double mouse click anywhere on the page (except when over hyperlinks) will take you back to the top.

 


Another simple bit of code using the history parameter. Duplicates the browser arrow controls. Will take you to the last pages visited forward or backward (providing there is a history). Really needs to be put on all pages to work sensibly.

View the Source Code for this page

Copy and paste this code into your HTML where you would like the button to appear.

<form>
<input type="button" value="View Source"
onClick= 'window.location = "view-source:" + window.location.href' >
</form>

Hyperlink titles may have been abbreviated, (right click on the link and select properties for the full URL)

A double mouse click anywhere on the page will take you back to the top (except when over hyperlinks)

Last Updated24/12/2007- Random Background on Page Load - Neils Resource Web