Free Code

 

Check out our new Free Code Document that you can email, save and print

This new document provides the Free Code on how to
Change the Page Title and Change the Status Bar Message

Email Link

This Free Code example shows you how to create an "Email Link", also known as a "Tell a Friend" link or a link that reads, "Send a link to this page".

Tell a Friend

Free HTML Code for the
"Tell a Friend" text link

<a title="Tell a Friend" href="mailto:?Subject=I thought you would like this site&Body=Check out The Color Tool, at: http://www.thecolortool.com">Tell a Friend</a>
The areas underlined characters can be changed by you to reflect your web site's style.

Add to Favorites

This Free Code example shows you how to create an "Add to Favorites" link.

Add to Favorites

Free JavaScript Code for the
"Add to Favorites" Bookmark link

<a title="Add to Favorites - Bookmark this Page" href="javascript:window.external.AddFavorite('http://www.thecolortool.com/', 'The Color Tool')">Add to Favorites</a>

The underlined characters can be changed to reflect the style and feel of your web site. Please note: This "Add to Favorites" link works in Internet Explorer only.

Change Background Colors
"On The Fly"

Free HTML Code to
Change Background Colors On The Fly

These button change the background colors to
Red, Green, Blue, Black and White

<input type="button" value="Yellow" onclick='document.bgColor="yellow"' />
The underlined characters can be changed to other web named colors. These types of buttons generally work across a number of different browsers, as long as you are using colors from the Web Named Colors palette. Please see the example below, pertaining to the code to change Font Colors "on the fly".

Free Code to Change Font Colors
"On The Fly"

Free HTML Code to
Change Font Colors On The Fly

These button change the font colors to
Red, Green, Blue, Black and White

<input type="button" value="Silver" onclick='document.fgColor="silver"' />

The underlined characters can be changed other web named colors. These types of buttons generally work across a number of different browsers, as long as you are using colors from the Web Named Colors palette. For example, you should be able to use colors like "LightSteelBlue", "Cyan", "AliceBlue" and other Web Named Colors.

The Free HTML Code and Free JavaScript Code shown above is displayed for you to use "As Is". There is no warranty or guarantee that these Free HTML and JavaScript Codes will work for your project. If you do decide to use some or all of the Free Code listed on this page, it is a good idea to test it's functionality on multiple browsers.

Home

Hair Color Tool