PDA

View Full Version : asp and javascript button


twocool
05-09-2003, 09:04 AM
i got this button

<input type="button" onclick="submit_form('<%=rs("ReqNo")%>', '<%=counter%>' )" name=Submit value="Submit">


but i want to change to a mousover effect button

<a href="javascript:window.document.form2.submit('<%=rs("ReqNo")%>', '<%=counter%>' ) " onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Submit','','../images/Submit_dwn.gif',1)"><img name="Submit" border="0" src="../images/Submit_up.gif" width="112" height="20"></a>



i cant mouseover the button and it cant pass over the values..
Pls help!!
:(

Roy Sinclair
05-09-2003, 04:47 PM
Use id="submit" instead of name="submit" on the image tag and use document.forms["form2"].submit in place of window.document.form2.submit.