Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<style type="text/css">
/*<![CDATA[*/
.greenhighlight {float:left; width:980px; height:60px;}
/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/
function changebg(ip,img,display) {
ip.parentNode.style.backgroundImage = 'url('+img+')';
ip.parentNode.getElementsByTagName('SPAN')[0].style.display = display;
}
/*]]>*/
</script>
</head>
<body>
<fieldset>
<div class="greenhighlight">
<span class="hint">The contact name is the name of the person who is to receive the enquiries for the adverts we submit. This field is required.</span>
<label for="contactname"><strong>* Contact Name:</strong></label>
<input type="text" id="contactname"
onfocus="changebg(this,'http://www.vicsjavascripts.org.uk/StdImages/One.gif','inline');"
onblur="changebg(this,'http://www.vicsjavascripts.org.uk/StdImages/Two.gif','none');"
/>
</div>
</fieldset>
</body>
</html>
Bookmarks