Address Book Tutorial

B efore we begin, to reconfigure this script you must adhere strictly to the format or it will Not function properly. The reconfigurations are also Case and Character sensitive.
Get Script Here ]
Back To Address Book ]

T here are three sections within this script, a, b and c. The two you will be mainly concerned with are a and c. Section b is a constant and will not change anywhere in the script.

Section "a"

T his section deals with the names of the people you add to your list.

<!--------------- Start Of Address Book Code --------------->

<p><font face="georgia,arial,helvetica"size="3"color="#ff0033"><strong>
Name <select name="a">
<option selected value="Michael">Michael
<option value="Erica">Erica
<option value="Richie">Richie
</select>

Y ou can add as many names as you want here just as long as they go before the closing </select> tag.

Y ou will also notice above the font tag with the font color in # ff0033. This is for the words Name, Info and Type Of Info. This can be reconfigured to fit with the look of your pages.

T he last thing we will cover is the opening <strong> tag at the end of the font tag. This can either be left as is to accent the three groups of words or you can remove that one and the closing </strong> tag at the end of the script.

Section "b"

T his section is the "constant". There are no reconfigurations to be made.
Leave It As Is!

Info <select name="b">
<option value="Search">Search
</select>

Section "c"

T his section deals with your information selection and the messages that will pop up. The first part there are no reconfiguration to be made

Type Of Info <select name="c">
<option selected value="Email">Email
<option value="Postal Address">Postal Address
<option value="Web Page">Web Page
<option value="PhoneNumbers">Phone Numbers
<option value="Nickname">Nickname
</select>

T his below part is where your major reconfigurations come into play. The top or first section of this part is very slightly different than the rest and MUST remain as the top or first part of this section. If you notice the word else is missing in front of the word if only on the first section. All the rest until the end will have the word else in front of the word if. If you look at the final entry in this section listed below, you will see where the missing word else is located. This determines the last entry. Keep it there, do not move it to the top!!

<script>
function get()
{
     if (a.value == "Michael" && b.value == "Search" && c.value == "Email")
{ alert ("Consigliere@ConsigliereLtd.zzn.com") }

else if (a.value == "Michael" && b.value == "Search" && c.value == "Postal Address")
{ alert ("The Consigliere™ 123 Main St. Hometown USA 00000") }

else if (a.value == "Michael" && b.value == "Search" && c.value == "Web Page")
{ alert ("www.angelfire.com/ny5/consigliere/") }

else if (a.value == "Michael" && b.value == "Search" && c.value == "PhoneNumbers")
{ alert ("Home -- 555-1212 Cel -- 555-1213") }

else if (a.value == "Michael" && b.value == "Search" && c.value == "Nickname")
{ alert ("The Consigliere™") }

else if (a.value == "Erica" && b.value == "Search" && c.value == "Email")
{ alert ("erica@email.com") }

else if (a.value == "Erica" && b.value == "Search" && c.value == "Postal Address")
{ alert ("Erica Doe 147 Doe St. Hometown USA 00000") }

else if (a.value == "Erica" && b.value == "Search" && c.value == "Web Page")
{ alert ("Erica does not have a website") }

else if (a.value == "Erica" && b.value == "Search" && c.value == "PhoneNumbers")
{ alert ("Home -- 555-4567 Pager -- 123-4567") }

else if (a.value == "Erica" && b.value == "Search" && c.value == "Nickname")
{ alert ("Special Bunny") }

else

T he below is the last of the configurations and you are done. For each name on your list, you need to add what is in between the two lines and be sure to follow the number sequence and be sure it is above the alert (name) }}


if (name == Next Number)
{ name = "Next Name" }


if (name == 0)
{ name = "Michael" }
if (name == 1)
{ name = "Erica" }
if (name == 2)
{ name = "Richie" }
alert (name) }}
</script>
</font></strong></div></p>

<!---------- End Address Book Script ---------->

R emember the opening <strong> tag at the beginning of this tutorial? Well just above is the closing </strong> tag. If you removed the opening one, be sure to remove the closing one just above.

All Done!

I f you have any trouble with this, feel free to contact us.

This Site Was Built And Is Maintained Exclusively by
Webmaster @ Consigliere™ Ltd.

Copyright © Consigliere Ltd., All Rights Reserved. 2001-