日期:2014-05-17  浏览次数:20400 次

前人留下来的。求助
<input type="button" name="submit1" value="修改预定" 
<%if Now<dsysj1 then%> onclick="modify_startresource()"  
<%else%> onclick="modify_endresource()" 
<%end if%>  
style="" >

为什么这样就会出错。

<input type="button" name="submit1" value="修改预定" 
<%if Now<dsysj1 then%> onclick="modify_startresource()"  

<%end if%> style="" >

else后面的去掉就正常了。不会VBS啊。。

------解决方案--------------------
VBScript code

<input type="button" name="submit1" value="修改预定"  
<%if Now<dsysj1 then
response.write("onclick='modify_startresource()'") 
else 
response.write("onclick='modify_endresource()'" ) 
<%end if%>   
style="" >