S
sathyashrayan
Dear group,
pls go through the following function definition:
function at_show_aux(parent, child)
{
var p = document.getElementById(parent);
var c = document.getElementById(child);
var top = (c["at_position"] == "y") ? p.offsetHeight+2 : 0;
var left = (c["at_position"] == "x") ? p.offsetWidth +2 : 0;
for (; p; p = p.offsetParent)
{
top += p.offsetTop;
left += p.offsetLeft;
}
c.style.position = "absolute";
c.style.top = top +'px';
c.style.left = left+'px';
c.style.visibility = "visible";
}
The variable c is not declared as a Array object, but it was manipulate
as is it is a array.I searched the google for the key word "javascript
array", but it all explains only about the variable declared with Array()
object. Can any one point me to the correct source for a Beginner.Thanks.
pls go through the following function definition:
function at_show_aux(parent, child)
{
var p = document.getElementById(parent);
var c = document.getElementById(child);
var top = (c["at_position"] == "y") ? p.offsetHeight+2 : 0;
var left = (c["at_position"] == "x") ? p.offsetWidth +2 : 0;
for (; p; p = p.offsetParent)
{
top += p.offsetTop;
left += p.offsetLeft;
}
c.style.position = "absolute";
c.style.top = top +'px';
c.style.left = left+'px';
c.style.visibility = "visible";
}
The variable c is not declared as a Array object, but it was manipulate
as is it is a array.I searched the google for the key word "javascript
array", but it all explains only about the variable declared with Array()
object. Can any one point me to the correct source for a Beginner.Thanks.