逻辑判断题,时间急...谢谢
<div class= "ldiv ">
<input type= "image " src= "/selectall.gif " onclick= "selectAllCheckBox(); "/>
<input type= "image " src= "/cencleall.gif " onclick= "unselectAllCheckBox(); "/>
<input type= "image " src= "/recycle.gif " onclick= "recycle(); "/>
<input type= "image " src= "/fbagain.gif " onclick= "reissue(); "/>
<input type= "image " src= "/deleteall.gif " onclick= "doDelete(); "/>
</div>
想问一问;
我想做一个判断;符合条件即显示其中几张图片;
if((a!= null && a.equals( "19 "))即显示除了 <input type= "image " src= "/recycle.gif " onclick= "recycle(); "/> 的所有图片..
当a!=null && a.equals( "17 ")或者( "18 ")时...显示所有图片除了 <input type= "image " src= "/deleteall.gif " onclick= "doDelete(); "/>
请问我应该怎么做?
很急很急...谢谢
------解决方案-------------------- <div class= "ldiv ">
<%
if((a!= null&&a.equals( "19 ")){
%>
<input type= "image " src= "/selectall.gif " onclick= "selectAllCheckBox(); "/>
<input type= "image " src= "/cencleall.gif " onclick= "unselectAllCheckBox(); "/>
<input type= "image " src= "/fbagain.gif " onclick= "reissue(); "/>
<input type= "image " src= "/deleteall.gif " onclick= "doDelete(); "/>
<%
}
if(a!=null&&a.equals( "17 ")||a.equals( "18 "){
<input type= "image " src= "/selectall.gif " onclick= "selectAllCheckBox(); "/>
<input type= "image " src= "/cencleall.gif " onclick= "unselectAllCheckBox(); "/>
<input type= "image " src= "/recycle.gif " onclick= "recycle(); "/>
<input type= "image " src= "/fbagain.gif " onclick= "reissue(); "/>
}
%>
</div>