<script type="text/javascript" src="/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(".boolstate").each(function () {
if ($(this).text() == "偏多")
{ $(this).html("<span style=\"color:#6db001;float:left;\">暂缓献血</span>"); }
if ($(this).text() == "正常")
{ $(this).html("<span style=\"color:red;float:left;\">欢迎献血</span>"); }
if ($(this).text() == "偏少")
{ $(this).html("<span style=\"color:#ff5656;float:left;\">尽快献血</span><img src=\"/images/nn_131.gif\" style=\"padding-top:1px;\" />"); }
if ($(this).text() == "急需")
{ $(this).html("<span style=\"color:red;float:left;\">急需献血</span><img src=\"/images/nn_13.gif\" style=\"padding-top:1px;\" />"); }
})
});
</script>