Thursday, 27 June 2013

On Hover Star Rating with Database



    
<form name="aform" method="post">
<div id="rateMe" title="Rate Me...">
    <a onclick="rateIt(this)" id="_1" title="Very Poor" onmouseover="rating(this)" onmouseout="off(this)"></a>
    <a onclick="rateIt(this)" id="_2" title="Poor " onmouseover="rating(this)" onmouseout="off(this)"></a>
    <a onclick="rateIt(this)" id="_3" title="Good" onmouseover="rating(this)" onmouseout="off(this)"></a>
    <a onclick="rateIt(this)" id="_4" title="Very Good" onmouseover="rating(this)" onmouseout="off(this)"></a>
    <a onclick="rateIt(this)" id="_5" title="Excellent" onmouseover="rating(this)" onmouseout="off(this)"></a>&nbsp;&nbsp;&nbsp;&nbsp;
        <textarea  id="rateStatus" name="user_rate" hidden="hidden" ></textarea>
              <span id="ratingSaved"></span>
              <span id="rate5"></span>
</div>
        <input type="submit" name="sub" class="submit" value="submit"/>
</form>