diff --git a/Chapter ZIPs/JavaScript/ch6.zip b/Chapter ZIPs/JavaScript/ch6.zip new file mode 100644 index 0000000..98b1177 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6.zip differ diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_1.html b/Chapter ZIPs/JavaScript/ch6/ex_6_1.html new file mode 100755 index 0000000..4a09aa4 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_1.html @@ -0,0 +1,18 @@ + + +Example 6.1 + + + + + + +some text +
+ + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_10.html b/Chapter ZIPs/JavaScript/ch6/ex_6_10.html new file mode 100755 index 0000000..426c474 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_10.html @@ -0,0 +1,94 @@ + + +Example 6.10 + + + + + +
+


Select Your Meal

+
+
+
Your Information +

Enter the following information:

+ + +

We will call your cell phone when your order is ready.
+ +

+
Main Course +

Pick your main course:

+ Rib-Eye Steak
+ Fried Chicken
+ Vegetarian Fried Tofu
+ Broiled Salmon

+
+
Side Dishes +

Pick two side dishes

+ French Fries
+ Baked Potato
+ Cole Slaw
+ Garden Salad
+ Mixed Vegetables
+ Macaroni and Cheese
+ Applesauce
+
+
+
+

+

Your meal:

+

Your name:  
+Your contact phone:  
+Entree selected:  
+First side dish selected:  
+Second side dish selected:  

+

Comments or questions:

+
+

+
+ + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_11.html b/Chapter ZIPs/JavaScript/ch6/ex_6_11.html new file mode 100755 index 0000000..810ae4d --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_11.html @@ -0,0 +1,95 @@ + + +Example 6.11 + + + + + +
+ +


Select Your Meal

+
+
+
Your Information +

Enter the following information:

+ + +

We will call your cell phone when your order is ready.
+ +

+
Main Course +

Pick your main course:

+ Rib-Eye Steak
+ Fried Chicken
+ Vegetarian Fried Tofu
+ Broiled Salmon

+
+
Side Dishes +

Pick two side dishes

+ French Fries
+ Baked Potato
+ Cole Slaw
+ Garden Salad
+ Mixed Vegetables
+ Macaroni and Cheese
+ Applesauce
+
+
+
+

+

Your meal:

+

Your name:  
+Your contact phone:  
+Entree selected:  
+First side dish selected:  
+Second side dish selected:  

+

Comments or questions:

+
+

+
+ + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_12.html b/Chapter ZIPs/JavaScript/ch6/ex_6_12.html new file mode 100755 index 0000000..61c2e57 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_12.html @@ -0,0 +1,28 @@ + + +Example 6.12 + + + + +

+

Enter a password that is between 4 and 8 characters, using only digits (0 - 9) and letters.

+

+

+

Password information:
+ Number characters allowed:  
+ Number characters entered:  
+ Password entered:  

+
+ diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_13.html b/Chapter ZIPs/JavaScript/ch6/ex_6_13.html new file mode 100755 index 0000000..70bee90 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_13.html @@ -0,0 +1,34 @@ + + +Example 6.13 + + + + +

+

Enter a word or a phrase:

+

+

+

Word/Phrase information:
+ You entered:  
+ It has this many characters:  
+ The first character is:  
+ The last character is:  
+ The 4th, 5th, 6th, and 7th characters are:  

+
+ diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_14.html b/Chapter ZIPs/JavaScript/ch6/ex_6_14.html new file mode 100755 index 0000000..0a9fa64 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_14.html @@ -0,0 +1,89 @@ + + +Example 6.14 + + + + +

+

Enter a password in the box below. Your password must: +
  • contain between 4 and 8 characters
  • +
  • begin with a letter of the alphabet (upper or lowercase)
  • +
  • contain at least one digit (0 - 9)
  • +
  • contain one of the following special characters: dollar sign ($), percent sign (%), or pound sign (#)
+

+

+

 
+

Password information:
+ Password entered:  

+

+ diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_15.html b/Chapter ZIPs/JavaScript/ch6/ex_6_15.html new file mode 100755 index 0000000..d2f2ae0 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_15.html @@ -0,0 +1,21 @@ + + +Example 6.15 + + + + + + + +

Colors

+

What color do you like best?

+ +
\ No newline at end of file diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_16.html b/Chapter ZIPs/JavaScript/ch6/ex_6_16.html new file mode 100755 index 0000000..b6ba8be --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_16.html @@ -0,0 +1,47 @@ + + +Example 6.16 + + + + + + +

Selection Lists

+

Where do you live?

+ +
+

Where do you live?

+ +
\ No newline at end of file diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_17.html b/Chapter ZIPs/JavaScript/ch6/ex_6_17.html new file mode 100755 index 0000000..7a91815 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_17.html @@ -0,0 +1,27 @@ + + +Example 6.17 + + + + + + +

Selection Lists

+

Select three favorite foods:

+ +

You must hold down the CTRL key on a Windows computer
+ or the Command button on a Mac to select multiple options.

+
\ No newline at end of file diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_18.html b/Chapter ZIPs/JavaScript/ch6/ex_6_18.html new file mode 100755 index 0000000..d12aa4b --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_18.html @@ -0,0 +1,142 @@ + + +Example 6.18 + + + + + +


+Fun With the Form

+

Enter your information in the boxes. After you are satisfied with each entry, press the OK +button to see the information displayed below. Use the TAB key to move from box to box and don't +be surprised by where the TABs take you.

+
+
+
+ +
+
+
+
+ +

+
+
+
+ +

+
+
+
+ +

+
+
+
+ +

+
+
+
+ +

+
+ +
+
+

Your information:

+

First name:  
+Last name:  
+Nickname:  
+Dream car:  
+Favorite meal:  
+Vacation desired:  

+ + + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_19.html b/Chapter ZIPs/JavaScript/ch6/ex_6_19.html new file mode 100755 index 0000000..1c4b118 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_19.html @@ -0,0 +1,147 @@ + + +Example 6.19 + + + + + +


+Fun With the Form

+

Enter your information in the boxes. After you are satisfied with each entry, press the OK +button to see the information displayed below. Use the TAB key to move from box to box and don't +be surprised by where the TABs take you.

+
+
+
+ + +

+
+
+ +
+
+
+
+ + +

+
+
+
+ + +

+
+
+
+ + +

+
+
+
+ + +

+
+ +
+ +
+

Your information:

+

First name:  
+Last name:  
+Nickname:  
+Dream car:  
+Favorite meal:  
+Vacation desired:  

+ + + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_2.html b/Chapter ZIPs/JavaScript/ch6/ex_6_2.html new file mode 100755 index 0000000..0d3d294 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_2.html @@ -0,0 +1,19 @@ + + +Example 6.2 + + + + + +



                              The contents of the form would go here

+ + +
+ + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_3.html b/Chapter ZIPs/JavaScript/ch6/ex_6_3.html new file mode 100755 index 0000000..a897008 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_3.html @@ -0,0 +1,53 @@ + + +Exercise 6.3 + + + + + + + + + + +

Colors

+

What color do you like best?

+ + Blue
+ + Red
+ + Green
+ + Purple
+ + Orange +
+
+ + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_4.html b/Chapter ZIPs/JavaScript/ch6/ex_6_4.html new file mode 100755 index 0000000..b289ae3 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_4.html @@ -0,0 +1,34 @@ + + +Example 6.4 + + + + + +
+ + + + + + + + + + + + + +
 

Select Your Avatar:

+

The avatar you selected is: kitty

+

 

+
+ + \ No newline at end of file diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_5.html b/Chapter ZIPs/JavaScript/ch6/ex_6_5.html new file mode 100755 index 0000000..5fb96d4 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_5.html @@ -0,0 +1,50 @@ + + +Example 6.5 + + + + +

+

Where do you live?

+ Argentina
+ China
+ France
+ Italy
+ Spain
+ Tibet
+ United States
+

+

+
+ diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_6.html b/Chapter ZIPs/JavaScript/ch6/ex_6_6.html new file mode 100755 index 0000000..a0b6322 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_6.html @@ -0,0 +1,66 @@ + + +Example 6.6 + + + + + + + + + + + + + +


Select Your Meal

Pick your main course:
+ Rib-Eye Steak
+ Fried Chicken
+ Vegetarian Fried Tofu
+ Broiled Salmon
+
Pick two side dishes
+ French Fries
+ Baked Potato
+ Cole Slaw
+ Garden Salad
+ Mixed Vegetables
+ Macaroni and Cheese
+ Applesauce
+


Entree selected:  

+

First side dish selected:  

+

Second side dish selected:  

+ + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_7.html b/Chapter ZIPs/JavaScript/ch6/ex_6_7.html new file mode 100755 index 0000000..d711d1c --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_7.html @@ -0,0 +1,13 @@ + + +Example 6.7 + + + +

+

Enter the requested information

+

This box uses the default values for size and maxlength and has no initial value:

+

This box is 30 spaces wide and limits the user to 25 characters in his or her name:

+

This box is 60 spaces wide, allows the user to enter up to 100 characters and shows an initial value of a name:

+
+ diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_8.html b/Chapter ZIPs/JavaScript/ch6/ex_6_8.html new file mode 100755 index 0000000..aef9187 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_8.html @@ -0,0 +1,91 @@ + + +Example 6.8 + + + + + +
+


Select Your Meal

+
+
+
Your Information +

Enter the following information:

+ + +

We will call your cell phone when your order is ready.
+ +

+
Main Course +

Pick your main course:

+ Rib-Eye Steak
+ Fried Chicken
+ Vegetarian Fried Tofu
+ Broiled Salmon

+
+
Side Dishes +

Pick two side dishes

+ French Fries
+ Baked Potato
+ Cole Slaw
+ Garden Salad
+ Mixed Vegetables
+ Macaroni and Cheese
+ Applesauce
+
+
+
+

+

Your meal:

+

Your name:  

+

Your contact phone:  

+

Entree selected:  

+

First side dish selected:  

+

Second side dish selected:  

+
+ + diff --git a/Chapter ZIPs/JavaScript/ch6/ex_6_9.html b/Chapter ZIPs/JavaScript/ch6/ex_6_9.html new file mode 100755 index 0000000..ee07cc5 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/ex_6_9.html @@ -0,0 +1,16 @@ + + +Example 6.9 + + + +

+

Enter your comments or questions below

+

This box uses the default values for rows and columns and has no initial value:
+

+

This box is set to 3 rows and 15 columns and has text that appears initially:
+

+

This box is set to 7 rows and 80 columns and has inital text:
+

+
+ diff --git a/Chapter ZIPs/JavaScript/ch6/greg.css b/Chapter ZIPs/JavaScript/ch6/greg.css new file mode 100755 index 0000000..eefbd08 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/greg.css @@ -0,0 +1,121 @@ +body { background-color: #000040; + background-image: url(background.gif); + color: #88ffff; + font-family: Verdana, Arial, sans-serif; +} +#container { margin-left: auto; + margin-right: auto; + width:80%; + min-width:700px; + } + + +#logo { + text-align:center; + margin: 0; + font-family: Geneva, Arial, Helvetica, sans-serif; + padding-top: 30px; + padding-bottom: 20px; + +} +#nav { + float: left; + width: 200px; + padding-top: 10px; + text-align:left; + color: #88FFFF; + font-size: 12px; +} +#nav a {text-decoration:none; + margin: 15px; + display: block; + color: #88FFFF; + font-size: 12px; +} +#content { + margin-left: 150px; + padding: 30px; + overflow:auto; + border: medium groove #88FFFF; + line-height: 135%; + +} + +.floatright {padding-left:20px; + float:right; + } +.floatleft { + float:left; + padding: 30px 0px 20px; +} +#footer { font-size: .60em; + font-style: italic; + text-align: center; + border-top: 2px double #000040; + padding-top: 20px; + padding-bottom: 20px; +} + +h2 { text-transform: uppercase; + color: #88ffff; + font-size: 1.2em; + border-bottom: 1px none; + margin-right: 20px; +} +h3 { + color: #88ffff; + font-size: 1.2em; + border-bottom: 1px solid #000000; + margin-right: auto; + text-align: left; + padding-top: 10px; + padding-right: 20px; + padding-bottom: 10px; + padding-left: 20px; + line-height: 120%; +} +.details { padding-left:20%; + padding-right:20%; +} + + +img {border:0; } + + +.content { + margin: 20px; + padding: 20px; + height: 3700px; + width: 500px; +} +a {text-decoration:none; + margin: 15px; + display: block; + color: #88FFFF; + font-size: 12px; +} +a:hover { + color: #000040; + background-color: #88ffff; +} +span { + font-size: 20px; + font-weight: bold; + font-family: "Courier New", Courier, mono; + color: #88ffff; + background-position: center center; + text-align: center; + vertical-align: middle; +} +table { + border-collapse: collapse +} +td { + border: 2px solid #88ffff; + width: 5em; + color: #88ffff; +} +.nobdr { + border: none; + cell-padding: 5px; +} diff --git a/Chapter ZIPs/JavaScript/ch6/greg/greg.css b/Chapter ZIPs/JavaScript/ch6/greg/greg.css new file mode 100755 index 0000000..eefbd08 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/greg/greg.css @@ -0,0 +1,121 @@ +body { background-color: #000040; + background-image: url(background.gif); + color: #88ffff; + font-family: Verdana, Arial, sans-serif; +} +#container { margin-left: auto; + margin-right: auto; + width:80%; + min-width:700px; + } + + +#logo { + text-align:center; + margin: 0; + font-family: Geneva, Arial, Helvetica, sans-serif; + padding-top: 30px; + padding-bottom: 20px; + +} +#nav { + float: left; + width: 200px; + padding-top: 10px; + text-align:left; + color: #88FFFF; + font-size: 12px; +} +#nav a {text-decoration:none; + margin: 15px; + display: block; + color: #88FFFF; + font-size: 12px; +} +#content { + margin-left: 150px; + padding: 30px; + overflow:auto; + border: medium groove #88FFFF; + line-height: 135%; + +} + +.floatright {padding-left:20px; + float:right; + } +.floatleft { + float:left; + padding: 30px 0px 20px; +} +#footer { font-size: .60em; + font-style: italic; + text-align: center; + border-top: 2px double #000040; + padding-top: 20px; + padding-bottom: 20px; +} + +h2 { text-transform: uppercase; + color: #88ffff; + font-size: 1.2em; + border-bottom: 1px none; + margin-right: 20px; +} +h3 { + color: #88ffff; + font-size: 1.2em; + border-bottom: 1px solid #000000; + margin-right: auto; + text-align: left; + padding-top: 10px; + padding-right: 20px; + padding-bottom: 10px; + padding-left: 20px; + line-height: 120%; +} +.details { padding-left:20%; + padding-right:20%; +} + + +img {border:0; } + + +.content { + margin: 20px; + padding: 20px; + height: 3700px; + width: 500px; +} +a {text-decoration:none; + margin: 15px; + display: block; + color: #88FFFF; + font-size: 12px; +} +a:hover { + color: #000040; + background-color: #88ffff; +} +span { + font-size: 20px; + font-weight: bold; + font-family: "Courier New", Courier, mono; + color: #88ffff; + background-position: center center; + text-align: center; + vertical-align: middle; +} +table { + border-collapse: collapse +} +td { + border: 2px solid #88ffff; + width: 5em; + color: #88ffff; +} +.nobdr { + border: none; + cell-padding: 5px; +} diff --git a/Chapter ZIPs/JavaScript/ch6/greg/images/bunny.jpg b/Chapter ZIPs/JavaScript/ch6/greg/images/bunny.jpg new file mode 100755 index 0000000..894cd03 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/greg/images/bunny.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/greg/images/elf.jpg b/Chapter ZIPs/JavaScript/ch6/greg/images/elf.jpg new file mode 100755 index 0000000..e860b56 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/greg/images/elf.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/greg/images/ghost.jpg b/Chapter ZIPs/JavaScript/ch6/greg/images/ghost.jpg new file mode 100755 index 0000000..dce7323 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/greg/images/ghost.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/greg/images/princess.jpg b/Chapter ZIPs/JavaScript/ch6/greg/images/princess.jpg new file mode 100755 index 0000000..02553af Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/greg/images/princess.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/greg/images/superhero.jpg b/Chapter ZIPs/JavaScript/ch6/greg/images/superhero.jpg new file mode 100755 index 0000000..72f5f62 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/greg/images/superhero.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/greg/images/wizard.jpg b/Chapter ZIPs/JavaScript/ch6/greg/images/wizard.jpg new file mode 100755 index 0000000..a98cbbc Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/greg/images/wizard.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/greg/signin.html b/Chapter ZIPs/JavaScript/ch6/greg/signin.html new file mode 100755 index 0000000..bb5e08b --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch6/greg/signin.html @@ -0,0 +1,204 @@ + + + + +Greg's Gambits | Player Inventory + + + + + +
+ +

Your Information and Inventory

+
+ +
+


Tell Greg About You

+
+
+
+

Enter the following information:

+

+

+

+

+

+

+
+
+

+ + + + + + + + + + + +

Your Avatar

   
                
+
+

Select three weapons to help you in your quest

+ Sword
+ Slingshot
+ Shield
+ Bow and 10 Arrows
+ 3 Magic Rocks
+ Knife
+ Staff
+ Wizard's Wand
+ 10 Extra Arrows
+ Cloak of Invisibility
+
+
+

Select five items to carry with you on your journeys

+ 3-Day Food Supply
+ Backpack
+ Kevlar Vest
+ 3-Day Supply of Water
+ Box of 4 Firestarters
+ Tent
+ First Aid Kit
+ Warm Jacket
+ 3 Pairs Extra Socks
+ Pen and Notebook
+
+
+
+


+

Your information
+Your name:  

+Username:  

+Player points:  

+Avatar:    

+Weapons:
+ 
+ 
+ 

+Supplies:
+ 
+ 
+ 
+ 
+ 

+
+
+ +
+ + diff --git a/Chapter ZIPs/JavaScript/ch6/images/bunny.jpg b/Chapter ZIPs/JavaScript/ch6/images/bunny.jpg new file mode 100755 index 0000000..894cd03 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/images/bunny.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/images/elf.jpg b/Chapter ZIPs/JavaScript/ch6/images/elf.jpg new file mode 100755 index 0000000..e860b56 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/images/elf.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/images/ghost.jpg b/Chapter ZIPs/JavaScript/ch6/images/ghost.jpg new file mode 100755 index 0000000..dce7323 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/images/ghost.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/images/princess.jpg b/Chapter ZIPs/JavaScript/ch6/images/princess.jpg new file mode 100755 index 0000000..da5f3f1 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/images/princess.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch6/images/wizard.jpg b/Chapter ZIPs/JavaScript/ch6/images/wizard.jpg new file mode 100755 index 0000000..a98cbbc Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch6/images/wizard.jpg differ