Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help please!!!

Status
Not open for further replies.

rogerluo

Programmer
Aug 13, 2001
21
GB
Hi all,

here is my code:

<html>
<META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-16&quot;>
<title>Bet365</title>
<head>
<STYLE TYPE=&quot;text/css&quot;>
<!--
#PosReturn {position: absolute;
top: 100px;
left: 400;
width:200 ;
padding: 2px;
}
-->
</STYLE>
<script language = &quot;javascript&quot;>
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=&quot;frmMain&quot; action=&quot;default.asp&quot; method=&quot;POST&quot;>

<script language=&quot;JavaScript&quot; src=&quot;js/instantbet.js&quot;></script>
<center>
<table NAME=&quot;testing&quot; Border=&quot;0&quot; Cellpadding=&quot;0&quot; width =&quot;&quot; Cellspacing=&quot;0&quot; align=&quot;center&quot; >
<tr>
<td colspan=&quot;4&quot; class=&quot;a-9-w-b-c-dg&quot; align=&quot;center&quot; height=&quot;30&quot;><b>DHTML for Netscape</b></td>
</tr>
<tr><td height=&quot;1&quot; colspan=&quot;4&quot;></td></tr>
<tr>
<td class=&quot;a-10-w-b-r-lg&quot; width=&quot;200&quot; height=&quot;17&quot;>Event Date:</td>
<td width=&quot;3&quot;></td>
<td colspan=&quot;2&quot;>Dec 9 2001 4:00PM</td>
</tr>
<tr><td height=&quot;1&quot; colspan=&quot;4&quot;></td></tr>

<tr>
<td class=&quot;a-10-w-b-r-lg&quot; width = &quot;200&quot;>Number</td>
<td width =&quot;1&quot;></td>
<td><input type=&quot;text&quot; size=&quot;5&quot; maxlength=&quot;7&quot; name=&quot;text&quot; onkeyup=&quot;testing(8);&quot;></input></td>
<td><DIV ID=&quot;PosReturn&quot; ></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
 
It seems to work fine for me...
bluebrain.gif
blueuniment.gif
 
but if you defined a value to table width (<table width = &quot;300&quot;>), it doesn't work! why???

thanks,
 
hmm...

Strangely enough, it works when you set its width up to 104. This is very unusual. Perhaps you should put an <ilayer> or <span> in the table and retrieve its position and applying it to the DIV rather than having the DIV itself nested inside.

ahh... The wonders of an inconsistent browser. With a browser as buggy as NS 4 is, no wonder they decided to make NS 6 not based on the same architecture. NS 4 is simply way too buggy to be considered a good browser.
bluebrain.gif
blueuniment.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top