Hi all,
i got a instereting question about Netscape:
firstly my code as below:
<html>
<head><script language = "javascript">
function testing(){
var place = document.frmMain.text.value;
var total =number*place;
if(document.layers)
{
var Lname = 'PosReturn';
var y = document.layers[Lname];
y.document.open();
y.document.write('total number is: '+total);
y.document.close();
}
}
</script>
<STYLE TYPE="text/css">
<!--
#PosReturn {position: absolute;
top: 100px;
left: 400;
width:200 ;
padding: 2px;
}
--></STYLE>
</head>
<link rel="stylesheet" type="text/css" href="style/ie_instantbet.css"><script language="JavaScript" src="js/form_validation.js"></script>
</head>
<body onload="window.resizeTo(500,500);">
<form name="frmMain" action="default.asp" method="POST" >
<center>
<table NAME="BettingSlip" Border="0" Cellpadding="0" width ="" Cellspacing="0" align="center" >
<tr>
<td colspan="4" class="a-9-w-b-c-dg" align="center" height="30"><b>DHTML for Netscape</b></td>
</tr>
<tr><td height="1" colspan="4"></td></tr>
<tr>
<td class="a-10-w-b-r-lg" width="200" height="17">Event Date:</td>
<td width="3"></td>
<td colspan="2">Dec 9 2001 4:00PM</td>
</tr>
<tr><td height="1" colspan="4"></td></tr>
<tr>
<td class="a-10-w-b-r-lg" width = "200">Number</td>
<td width ="1"></td>
<td><input type="text" size="5" maxlength="7" name="text" onkeydown="testing(8);"></input></td>
<td><DIV ID="PosReturn" ></DIV></td>
</tr>
</table>
</center>
</body></html>
see i resize the window size, however, it cause the function testing() doesn't work. i do know 'NN4 looses positions and style definitions of layer when resizing the browser window', but i don't know how to solve it out (and resize is very necessary here).
Thanks,
i got a instereting question about Netscape:
firstly my code as below:
<html>
<head><script language = "javascript">
function testing(){
var place = document.frmMain.text.value;
var total =number*place;
if(document.layers)
{
var Lname = 'PosReturn';
var y = document.layers[Lname];
y.document.open();
y.document.write('total number is: '+total);
y.document.close();
}
}
</script>
<STYLE TYPE="text/css">
<!--
#PosReturn {position: absolute;
top: 100px;
left: 400;
width:200 ;
padding: 2px;
}
--></STYLE>
</head>
<link rel="stylesheet" type="text/css" href="style/ie_instantbet.css"><script language="JavaScript" src="js/form_validation.js"></script>
</head>
<body onload="window.resizeTo(500,500);">
<form name="frmMain" action="default.asp" method="POST" >
<center>
<table NAME="BettingSlip" Border="0" Cellpadding="0" width ="" Cellspacing="0" align="center" >
<tr>
<td colspan="4" class="a-9-w-b-c-dg" align="center" height="30"><b>DHTML for Netscape</b></td>
</tr>
<tr><td height="1" colspan="4"></td></tr>
<tr>
<td class="a-10-w-b-r-lg" width="200" height="17">Event Date:</td>
<td width="3"></td>
<td colspan="2">Dec 9 2001 4:00PM</td>
</tr>
<tr><td height="1" colspan="4"></td></tr>
<tr>
<td class="a-10-w-b-r-lg" width = "200">Number</td>
<td width ="1"></td>
<td><input type="text" size="5" maxlength="7" name="text" onkeydown="testing(8);"></input></td>
<td><DIV ID="PosReturn" ></DIV></td>
</tr>
</table>
</center>
</body></html>
see i resize the window size, however, it cause the function testing() doesn't work. i do know 'NN4 looses positions and style definitions of layer when resizing the browser window', but i don't know how to solve it out (and resize is very necessary here).
Thanks,