<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<link rel= "stylesheet" href= "Css/crselectbox.css" type= "Text/css"/>
<script src= "Jquery-1.3.2.js" type= "text/JavaScript"></script>
<script type= "Text/javascript" >
$ (function () {
$(". Crselectbox "). Hover (function () {
$ (this). addclass ("Crselectboxhover");
},function () {
$ (this). Removeclass ("Crselectboxhover");
});
$(". Crselectvalue "). Click (function () {
$ (this). blur ();
$(". Crselectboxoptions "). Show ();
return false;
});
$(". Crselectboxitem a "). Click (function () {
$ (this). blur ();
var value = $ (this). attr ("rel");
var txt = $ (this). html ();
$ ("#abc"). val (value);
$ ("#abc_CRtext"). Val (TXT);
$(". Crselectvalue "). HTML (TXT);
$(". Crselectboxitem a "). Removeclass (" selected ");
$ (this). AddClass ("selected");
$(". Crselectboxoptions "). Hide ();
return false;
});
/* Click on any place to close the layer * *
$ (document). Click (Function (event) {
if ($ (event.target). attr ("class")!= "Crselectbox") {
$(". Crselectboxoptions "). Hide ();
}
});
})
</script>
<body >
<div class= "Crselectbox" >
<input type= "Hidden" value= "1" name= "abc" id= "abc"/><!--hidden used to replace the value of select-->
<input type= "hidden" value= " <!-- Hidden is used instead of a select text-->
<a class= "Crselectvalue" href= "#" ></a>
<ul class= "Crselectboxoptions" >
<li class= "Crselectboxitem" ><a href= "#" class= "selected" rel= "1" > </a></li>
<li class= "Crselectboxitem" ><a href= "#" rel= "2" ></a></li >
<li class= "Crselectboxitem" ><a href= "#" rel= "3" ></a></li >
</ul>
</div>
</body>