Grab page title :
This simple javaScript snippet shows how to grab the title of the page your on and insert it into a paragraph with the id "title" using innerHTML and getElementById.
Click here to
view the Demo
or
Click here
to download the script
Random Picture Script :
This random picture script is simple to intergrate into your
site and easy to understand and everytime the page is refreshed or the change
button is pressed the picture changes. Also you can click directly on the picture
and be taken to a new page where you can view only the picture.
Click here to
view the Demo
or
Click here
to download the script with sample images
Automatic Copyright Update Script :
This simple PHP function will Automatically update your web pages with the current year
which means you don't have to waste time each year doing it manually and can get on with more important things!
The only thing to remember is it takes the current year from the server where your site is hosted on so if the date is wrong or updates a little
early or late it could be your server is in another time zone to the one you live in
or the server has actually got the wrong date set!
This is how my Copyright notice at the bottom of this page looks like behind the scenes
"Copyright© Ian.J.Gough <?php echo date('Y'); ?>. All rights reserved.
"
Alert Box:
Sometimes you need to display an alert to the user for various reasons like they forgot to fill in all there details on a form or you want to warn them when there leaving your site or just say hello when they arrive or whatever other reason you have.

