hi,
have the following link to a page
i want to add an if...then statement that lets page open link if hoursleft > 0 else a popup box that says there are no more hours left
so far...
this brings up a vbscript error
please ay ideas welcome
have the following link to a page
Code:
<a href=<%Response.Write "custaddmot.asp?motdate=" & Server.URLEncode(motdate) & "&motid=" & Server.URLEncode(x_motid)%> target="_blank" onClick="
window.open(this.href, this.target, 'height=500,width=480,status=no,resizable=no,scrollbars=no');
return false;">FREE</a>
i want to add an if...then statement that lets page open link if hoursleft > 0 else a popup box that says there are no more hours left
so far...
Code:
<a href=<%if hoursleft > 0 then Response.Write "custaddmot.asp?motdate=" & Server.URLEncode(motdate) & "&motid=" & Server.URLEncode(x_motid)%> target="_blank" onClick="
window.open(this.href, this.target, 'height=500,width=480,status=no,resizable=no,scrollbars=no');
return false;"><%Response.Write "javascript:alert('No Hours Left');" End If %>FREE</a>
this brings up a vbscript error
please ay ideas welcome