It is impossible. That's weird.... But you can still use the documents.object or get elementbyid or something.style.left property and the top property, right?
__________________
Computers are simple for the complex mind, yet complex for the simple mind
Well, according to netstat.com 95% of the users in this world use IE. But you still need get across to all the audience, even if it is 5%. I know a lot of people who use Netscape, I can't really figure out how it got to be five percent. Why don't you take a poll and ask your visitors what browsers they use. In my opinion, it depends upon your browser audience. So well ya, majority rules, and since everyone has IE (unless they are running linux), I don't see why they just can't open it up and go to your webpage.
__________________
Computers are simple for the complex mind, yet complex for the simple mind
Last edited by snakedevil1; 06-26-2002 at 12:46 PM..
I found a couple of return position functions. I tested them and I think they work in Netscape 6:
function findPosX(obj)
{
var curleft = 0;
if (document.getElementById || document.all)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (document.layers)
curleft += obj.x;
return curleft;
}
function findPosY(obj)
{
var curtop = 0;
if (document.getElementById || document.all)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (document.layers)
curtop += obj.y;
return curtop;
}
thanks a lot shake...
actually, I almost going to give up to find the solution already, this is because I have too many things to do, got another project in hand, so can't spend too much time to find out the solution. Anyway, will try it out when i'm free as for me nothing is impossible.
Guess won't be a big problem as my web-page look good in IE, in nestcape6, user can view the page as good as IE, unless they resize their window. I try already, even i change the screen resolution, the layer still associated with the Futurelaunches Link. So, should not be a big problem.
I have already went through (briefly) the site that you mentioned, it is really really really useful, thank for your guidance, really appreciate it. I will try to solve my problem with the code given by you within these two days, will keep you inform of my progress.
oh ya, forget to tell you, even I use, obj.style.left , i can't get any value too, the answer is "empty" or "blank" instead of underfine. Do you know why???
You are giving a very good response on my questions (may be to others as well), so, will never forget codingforums.com when i have any problems.
thanks again.