日期:2014-05-16 浏览次数:20702 次
<script type="text/javascript" src="js/jquery-1.4.3.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var ann = $("#annulus").val();
alert(ann);
if(ann > 0){
$("#annulusFlaf").html("<img src='image/image8.gif'>");
}else if(ann < 0){
$("#annulusFlaf").html("<img src='image/image7.gif'>");
}else{
$("#annulusFlaf").html("<img src='image/image6.gif'>");
}
});
<tr>
<td align="right" >环比</td>
<td align="left" id="annulus">
<%=mon.getAnnulus()%>
<span id="annulusFlaf"></span>
</td>
</tr>