M
MingChih Tsai
Dear All,
How should I do if I want to get the left offset value of the button
2 !!
Thanks a lot !!
code as following .....
<HTML>
<HEAD>
<script language="javascript">
function test(e)
{
alert (e.offsetLeft);
}
</script>
</HEAD>
<body>
<form id="form1" method="post" runat="server">
<P></P>
<P> </P>
<P></P>
<P> <INPUT id="Button1" type="button" value="Button1" name="Button1"
onclick="javascript:return test(this)"></P>
<P> </P>
<P>
<TABLE width="500" align="center" border="1" ID="Table1">
<TR>
<TD style="WIDTH: 245px" width="245">test</TD>
<TD width="500"><INPUT id="Button2" type="button" value="Button2"
name="Button2" onclick="javascript:return test(this)"></TD>
</TR>
</TABLE>
</P>
</form>
</body>
</HTML>
How should I do if I want to get the left offset value of the button
2 !!
Thanks a lot !!
code as following .....
<HTML>
<HEAD>
<script language="javascript">
function test(e)
{
alert (e.offsetLeft);
}
</script>
</HEAD>
<body>
<form id="form1" method="post" runat="server">
<P></P>
<P> </P>
<P></P>
<P> <INPUT id="Button1" type="button" value="Button1" name="Button1"
onclick="javascript:return test(this)"></P>
<P> </P>
<P>
<TABLE width="500" align="center" border="1" ID="Table1">
<TR>
<TD style="WIDTH: 245px" width="245">test</TD>
<TD width="500"><INPUT id="Button2" type="button" value="Button2"
name="Button2" onclick="javascript:return test(this)"></TD>
</TR>
</TABLE>
</P>
</form>
</body>
</HTML>