代码:
<script language="JavaScript">
<!--
function tj()
{
if (form1.CheckCode_input.value=="")
{
alert("请先输入验证码,才能正常观看!");
form1.CheckCode_input.focus();
return false;
}
}
//-->
</script>
[html]
<form name="form1" method="post" action="toupiao.php" onSubmit="return tj();">
<input name="id" type="hidden" value="136">
请输入验证码:<font color="red">*</font>
<input type="text" id="CheckCode_input" name="CheckCode_input" size="8"><img src="http://www.uusee.com/newmanshow/checkjpg.php" width="43" height="18">
<a href="http://www.hd3721.com/Play.asp?id=45" onClick="return tj();document.form1.submit();" >点此观看</a>
</form>
[/html]