Hi all,
here is my code:
<html>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<title>Bet365</title>
<head>
<STYLE TYPE="text/css">
<!--
#PosReturn {position: absolute;
top: 100px;
left: 400;
width:200 ;
padding: 2px;
}
-->
</STYLE>
<script language = "javascript">
function testing(number)
{
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>
</head>
</head>
<body>
<form name="frmMain" action="default.asp" method="POST">
<script language="JavaScript" src="js/instantbet.js"></script>
<center>
<table NAME="testing" 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" onkeyup="testing(8);"></input></td>
<td><DIV ID="PosReturn" ></DIV></td>
</tr>
</table>
</center>
</body>
</html>
what the problem is: if i defined the width of table, the Dynamic content will not generate; otherwise, it works fine. however, i do need define the table width here. so how can i do???
thanks,
danni
here is my code:
<html>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<title>Bet365</title>
<head>
<STYLE TYPE="text/css">
<!--
#PosReturn {position: absolute;
top: 100px;
left: 400;
width:200 ;
padding: 2px;
}
-->
</STYLE>
<script language = "javascript">
function testing(number)
{
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>
</head>
</head>
<body>
<form name="frmMain" action="default.asp" method="POST">
<script language="JavaScript" src="js/instantbet.js"></script>
<center>
<table NAME="testing" 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" onkeyup="testing(8);"></input></td>
<td><DIV ID="PosReturn" ></DIV></td>
</tr>
</table>
</center>
</body>
</html>
what the problem is: if i defined the width of table, the Dynamic content will not generate; otherwise, it works fine. however, i do need define the table width here. so how can i do???
thanks,
danni