Код HTML:
<table width="310" border="0" align="center">
<tr>
<td>
<!--Форма связи с администрацией сайта -->
<style type="text/css">
body
{
font-family: Arial, Sans-Serif;
font-size: 13px;
}
#inputArea
{
font-family: Arial, Sans-Serif;
font-size: 13px;
padding: 10px;
width:310px;
}
#inputArea input, #inputArea textarea
{
font-family: Arial, Sans-Serif;
font-size: 13px;
margin-bottom: 5px;
display: block;
padding: 4px;
width: 300px;
}
.activeField
{
background-image: none;
background-color: #ffffff;
border: solid 1px #33677F;
}
.idle
{
border: solid 1px #85b1de;
background-image: url( 'gray_bg.png' );
background-repeat: repeat-x;
background-position: top;
background-color:#FFFFFF;
}
</style>
</head>
<body>
<div id="inputArea">
<form action="sent.php" method="post" name="f1">
<label>Ваше Имя:</label><input type="text" name="name" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" />
<label>E-mail:</label><input type="text" name="email" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" />
<label>Тема сообщения:</label><input type="text" name="sub" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" />
<label>Текст сообщения:</label><textarea name="message" rows="4" cols="30" class="idle" onblur = "this.className='idle'" onfocus = "this.className='activeField'"></textarea>
<input type="submit" value="Отправить" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'"></form>
</div>
</body>
</html>
<!--Форма связи с администрацией сайта -->
как-то так
)
Социальные закладки