Copy codeThe Code is as follows:
<! DOCTYPE html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> jQuery pentagram scoring plug-in </title>
<Script type = "text/javascript" src = "js/jquery/jquery-1.3.2.min.js"> </script>
<Script type = "text/javascript" src = "js/star_rating.js"> </script>
<Style type = "text/css">
# Rating_cont {background: # 1E1D1C url (images/rating_background.jpg) top left no-repeat; border: 1px solid # F9BA0D; width: 140px; height: 23px; text-align: left; margin-left: 6px ;}
# Rating_on {background: url (images/rating_onbackground.jpg) top left no-repeat; width: 0px; height: 21px; position: relative; z-index: 50; top: -21px ;}
# Rated {display: none; width: 138px; padding: 3px 0px 3px 2px; height: 23px; background-color: # 1E1D1C; height: 17px; font-size: 11px; color: # FFC910 ;}
# Rated div {display: block; float: left ;}
# Rating {font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: # FFC910; padding-left: 3px; width: 22px ;}
# Small_stars {height: 11px; width: 69px; background-image: url (images/stars_small_sprite.jpg); background-position: 0px-11px; font-size: 1px; line-height: 11px; margin-top: 3px ;}
# Rate_edit {line-height: 17px; font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: # FFF; padding-left: 9px; cursor: pointer ;}
# Rate_edit: hover {text-decoration: underline ;}
# Rating_btns {position: relative; z-index: 100; width: 140px; height: 21px ;}
# Rating_btns ul, # rating_btns li {padding: 0; margin: 0 ;}
# Rating_btns li {float: left; width: 14px; height: 21px; display: block; font-size: 1px; cursor: pointer; color: # 1E1D1C;
}
</Style>
</Head>
<Body>
<Div id = "demo">
<Div id = "rating_cont">
<Div id = "rating_btns">
<Ul>
<Li> 0.5 </li>
<Li> 1.0 </li>
<Li> 1.5 </li>
<Li> 2.0 </li>
<Li> 2.5 </li>
<Li> 3.0 </li>
<Li> 3.5 </li>
<Li> 4.0 </li>
<Li> 4.5 </li>
<Li> 5.0 </li>
</Ul>
</Div>
<Div id = "rating_on"> </div>
<Div id = "rated">
<Div id = "rating" style = "height: 17px; line-height: 17px;"> not rated </div>
<Div>-</div>
<Div id = "small_stars"> </div>
<Div id = "rate_edit"> edit </div>
</Div>
</Div>
<Input type = "hidden" id = "rating_output" name = "rating_output" value = "not rated"/>
</Div>
</Body>
</Html>
Copy codeThe Code is as follows:
<! DOCTYPE html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> jQuery pentagram scoring plug-in </title>
<Script type = "text/javascript" src = "js/jquery/jquery-1.3.2.min.js"> </script>
<Script type = "text/javascript" src = "js/star_rating.js"> </script>
<Style type = "text/css">
# Rating_cont {background: # 1E1D1C url (images/rating_background.jpg) top left no-repeat; border: 1px solid # F9BA0D; width: 140px; height: 23px; text-align: left; margin-left: 6px ;}
# Rating_on {background: url (images/rating_onbackground.jpg) top left no-repeat; width: 0px; height: 21px; position: relative; z-index: 50; top: -21px ;}
# Rated {display: none; width: 138px; padding: 3px 0px 3px 2px; height: 23px; background-color: # 1E1D1C; height: 17px; font-size: 11px; color: # FFC910 ;}
# Rated div {display: block; float: left ;}
# Rating {font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: # FFC910; padding-left: 3px; width: 22px ;}
# Small_stars {height: 11px; width: 69px; background-image: url (images/stars_small_sprite.jpg); background-position: 0px-11px; font-size: 1px; line-height: 11px; margin-top: 3px ;}
# Rate_edit {line-height: 17px; font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: # FFF; padding-left: 9px; cursor: pointer ;}
# Rate_edit: hover {text-decoration: underline ;}
# Rating_btns {position: relative; z-index: 100; width: 140px; height: 21px ;}
# Rating_btns ul, # rating_btns li {padding: 0; margin: 0 ;}
# Rating_btns li {float: left; width: 14px; height: 21px; display: block; font-size: 1px; cursor: pointer; color: # 1E1D1C;
}
</Style>
</Head>
<Body>
<Div id = "demo">
<Div id = "rating_cont">
<Div id = "rating_btns">
<Ul>
<Li> 0.5 </li>
<Li> 1.0 </li>
<Li> 1.5 </li>
<Li> 2.0 </li>
<Li> 2.5 </li>
<Li> 3.0 </li>
<Li> 3.5 </li>
<Li> 4.0 </li>
<Li> 4.5 </li>
<Li> 5.0 </li>
</Ul>
</Div>
<Div id = "rating_on"> </div>
<Div id = "rated">
<Div id = "rating" style = "height: 17px; line-height: 17px;"> not rated </div>
<Div>-</div>
<Div id = "small_stars"> </div>
<Div id = "rate_edit"> edit </div>
</Div>
</Div>
<Input type = "hidden" id = "rating_output" name = "rating_output" value = "not rated"/>
</Div> <br/>
<Br/>
</Body>
</Html>