实现用表单提交按钮来控制动画播放?即用一个按钮或图像来同时作为表单提交按钮和控制动画播放。
就是说我在点击表单提交按钮(或图片)的同时激活一个动画的播放。我试了很多次,却只能实现其中的一种。下面是代码,(空间限制去掉了前面一部分),有高手能发现问题所在吗?(分数...
就是说我在点击表单提交按钮(或图片)的同时激活一个动画的播放。我试了很多次,却只能实现其中的一种。下面是代码,(空间限制去掉了前面一部分),有高手能发现问题所在吗?(分数不多请别介意)
<table width="675" height="701" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="280" colspan="2" valign="top"><img src="images/xys_r1_0.jpg" width="675" height="280" /></td>
</tr>
<tr>
<td height="3" colspan="2"><img src="images/spacer.gif" width="1" height="1" /></td>
</tr>
<tr>
<td width="42" height="272" align="right" valign="top"> </td>
<td width="633" height="272" align="right" valign="top" background="images/xys_r1.jpg"><table width="90%" height="268" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" height="100"> </td>
<td width="65%"> </td>
<td width="33%"> </td>
</tr>
<tr>
<td height="20"> </td>
<td valign="top"><form id="form1" name="form1" method="post" action="">
<span class="STYLE3">把你的心愿写在下方,抛上许愿树,传达给佛祖:</span>
</form> </td>
<td> </td>
</tr>
<tr>
<td height="20"> </td>
<td><textarea name="textarea" cols="40" rows="5" class="xys"></textarea></td>
<td> </td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="52" colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="69%" height="52"><form id="form2" name="form2" method="post" action="">
<input name="Submit" type="submit" onclick="MM_controlShockwave('0','','Play')" value="提交" />
</form>
</td>
<td width="7%"><input type="image" name="imageField" src="images/xys_pao.png" onclick="form1.submit();MM_controlShockwave('0','','Play')" width="48" height="52" ></td>
<td width="24%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="23" colspan="2"> </td>
</tr>
<tr>
<td height="23" colspan="2"> </td>
</tr>
<tr>
<td height="23" colspan="2"> </td>
</tr>
<tr>
<td height="25" colspan="2"> </td>
</tr>
</table> 展开
<table width="675" height="701" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="280" colspan="2" valign="top"><img src="images/xys_r1_0.jpg" width="675" height="280" /></td>
</tr>
<tr>
<td height="3" colspan="2"><img src="images/spacer.gif" width="1" height="1" /></td>
</tr>
<tr>
<td width="42" height="272" align="right" valign="top"> </td>
<td width="633" height="272" align="right" valign="top" background="images/xys_r1.jpg"><table width="90%" height="268" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" height="100"> </td>
<td width="65%"> </td>
<td width="33%"> </td>
</tr>
<tr>
<td height="20"> </td>
<td valign="top"><form id="form1" name="form1" method="post" action="">
<span class="STYLE3">把你的心愿写在下方,抛上许愿树,传达给佛祖:</span>
</form> </td>
<td> </td>
</tr>
<tr>
<td height="20"> </td>
<td><textarea name="textarea" cols="40" rows="5" class="xys"></textarea></td>
<td> </td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="52" colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="69%" height="52"><form id="form2" name="form2" method="post" action="">
<input name="Submit" type="submit" onclick="MM_controlShockwave('0','','Play')" value="提交" />
</form>
</td>
<td width="7%"><input type="image" name="imageField" src="images/xys_pao.png" onclick="form1.submit();MM_controlShockwave('0','','Play')" width="48" height="52" ></td>
<td width="24%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="23" colspan="2"> </td>
</tr>
<tr>
<td height="23" colspan="2"> </td>
</tr>
<tr>
<td height="23" colspan="2"> </td>
</tr>
<tr>
<td height="25" colspan="2"> </td>
</tr>
</table> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询