document.images[0].X 
February 10th, 2006, 04:55 PM
| | |
Hi,
An easy ne I guess.
Is there a way to get the x and y position of an image in a web page using
IExplorer?
document.images[0].X for example
--
Jean Pierre Daviau
--
Easyphp1.8
Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz http://www.jeanpierredaviau.com | 
February 11th, 2006, 03:25 AM
| | | | re: document.images[0].X
Try with offsetLeft or offsetHeight.
Danny | 
February 13th, 2006, 11:25 PM
| | | | re: document.images[0].X
Thanks it works perfectly here http://www.jeanpierredaviau.com/sgagnon/tableindex.html
"Danny" <dann90038@bluebottle.com> a écrit dans le message de news:
NDcHf.46762$dW3.17593@newssvr21.news.prodigy.com.. .[color=blue]
>
> Try with offsetLeft or offsetHeight.
>
> Danny[/color] | 
February 14th, 2006, 12:45 AM
| | | | re: document.images[0].X
Except
see my post on strange TR behavior | 
February 14th, 2006, 10:05 AM
| | | | re: document.images[0].X
Jean Pierre Daviau wrote on 14 feb 2006 in comp.lang.javascript:
[color=blue]
> Except
>
> see my post on strange TR behavior
>[/color]
PLEASE always quote on usenet.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) | 
February 16th, 2006, 02:56 PM
| | | | re: document.images[0].X
> "Danny" <dann90038@bluebottle.com> a écrit dans le message de news:[color=blue]
> NDcHf.46762$dW3.17593@newssvr21.news.prodigy.com.. .[color=green]
>>
>> Try with offsetLeft or offsetHeight.
>>
>> Danny[/color]
>[/color]
document.body.parentElement.offsetHeight
does the job | 
February 16th, 2006, 02:56 PM
| | | | re: document.images[0].X
"Jean Pierre Daviau" <Once@WasEno.ugh> a écrit dans le message de news:
Ea0Jf.16440$pf1.56342@weber.videotron.net...[color=blue][color=green]
>> "Danny" <dann90038@bluebottle.com> a écrit dans le message de news:
>> NDcHf.46762$dW3.17593@newssvr21.news.prodigy.com.. .[color=darkred]
>>>
>>> Try with offsetLeft or offsetHeight.
>>>
>>> Danny[/color][/color][/color]
In fact
if(document.all){
documente = document.body.parentElement.offsetHeight
}
if (document.layers){
//Netscape
var elems = document.getElementsByTagName('*');
documente = elems[0].offsetHeight;
}else{//Opera
documente = document.getElementById('tablo').offsetHeight
}
[color=blue]
> does the job
>[/color] |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,720 network members.
|