View source to extract the code. In each case, the required functions have been located immediately above the relevant text for easy copying. Once you have inserted the text in the new location, the functions can be cut and pasted in the head section of that document. Note that the code on this page conforms to XHTML 1 transitional.
currencon function always gives two decimal places:
todate functioncalculates days ahead:
There are now
days to the year 2030!
dateconv function takes a date and translates it into meaningful terms:
The current date is
tohex function converts decimals to hexadecimals:
a full colour converter and tester is located under tools
A javascript rollover
This script includes a preload function.
![]() |
![]() |
Image swap used extensively on this site, with the JavaScript wholly built into the HTML:
Conditional text, in this case dependent on the existence of a top frame. This is to display links not valid in different situations:
A simple cookie
To create a cookie on your site, enter a value into the text box below and press Set cookie.
Press Get cookie to retrieve it at any time up to 30 days. You can also read the cookie details in your cookie folder with notepad:
A javascript back button takes you back to where you came from
initiator of window 1 initiator of window 2
To visit other pages using a Remote selector - currently under development