Hello....I am doing a simple page that consists of 3 entry fields, one CVV Code, I added a mouseover() which shows a picture...
My problem is that it works fine in FireFox, but when opened in IE it doesnt work.
Can anyone help me...Thanks much...
Code..
<SCRIPT language="JavaScript" src="customerInfo.js"></SCRIPT>
<SCRIPT LANGUAGE=javascript>
<!--
function show()
{
cvvcode.style.visibility = "visible";
cvvcode.style.height="150";
cvvcode.style.width="350"
cvvcode.style.top="310";
cvvcode.style.left="660";
}
function hide()
{
cvvcode.style.visibility = "hidden"
}
//-->
</SCRIPT>
...
<tr>
<td><a OnMouseOver="JavaScript:show()" OnMouseOut="JavaScript:hide()" class="img" ><FONT class="regtext">CVV Code
<br><FONT size="1">(view CCV example)</A></td>
<IMG ID="cvvcode" SRC="cvv.gif" STYLE="position:absolute;visibility:hidden" border="2">
<td colspan="1"><input type="text" name="cvv" size="3" maxlength="3"
onKeyPress= "if ((event.keyCode > 47 && event.keyCode < 58) || (event.keyCode==45)) event.returnValue = true; else event.returnValue = false;">
</td>
</tr>
My problem is that it works fine in FireFox, but when opened in IE it doesnt work.
Can anyone help me...Thanks much...
Code..
<SCRIPT language="JavaScript" src="customerInfo.js"></SCRIPT>
<SCRIPT LANGUAGE=javascript>
<!--
function show()
{
cvvcode.style.visibility = "visible";
cvvcode.style.height="150";
cvvcode.style.width="350"
cvvcode.style.top="310";
cvvcode.style.left="660";
}
function hide()
{
cvvcode.style.visibility = "hidden"
}
//-->
</SCRIPT>
...
<tr>
<td><a OnMouseOver="JavaScript:show()" OnMouseOut="JavaScript:hide()" class="img" ><FONT class="regtext">CVV Code
<br><FONT size="1">(view CCV example)</A></td>
<IMG ID="cvvcode" SRC="cvv.gif" STYLE="position:absolute;visibility:hidden" border="2">
<td colspan="1"><input type="text" name="cvv" size="3" maxlength="3"
onKeyPress= "if ((event.keyCode > 47 && event.keyCode < 58) || (event.keyCode==45)) event.returnValue = true; else event.returnValue = false;">
</td>
</tr>