HTML and CSS Reference
In-Depth Information
StorageMaster.getFirst=function()
{
playerName=sessionStorage.getItem(“firstBase”);
alert(playerName + “ is on first”);
}
StorageMaster.getSecond=function()
{
playerName=sessionStorage.getItem(“secondBase”);
alert(playerName +” is playing second”);
}
StorageMaster.getThird=function()
{
playerName=sessionStorage.getItem(“thirdBase”);
alert(playerName+ “ is assigned to third”);
}
</
script
>
<
style
type
=
“text/css”
>
body {
background-color:#EBD4B2;
color:#273A4B;
font-family:Verdana, Geneva, sans-serif;
}
h2 {
background-color:#273A4B;
color:#D49756;
text-align:center;
}
h3 {
color:#323F14;
}
fieldset {
color:#790007
}
#playerTable {
display:table;
}
#getPlayer {
display:table-cell;
width:250px;
}
</
style
>
<
meta
http-equiv
=
“Content-Type”
content
=
“text/html; charset=UTF-
8
”
>
<
title
>
Storage
</
title
>
</
head
>
314
<
body
>
<article>
<header>
<hgroup>
<
h2
>
Baseball Manager
</
h2
>
<
h3
>
Assign Players:
</
h3
>