Connecting Tech Pros Worldwide Help | Site Map

document.images[0].X

 
LinkBack Thread Tools Search this Thread
  #1  
Old February 10th, 2006, 03:55 PM
Jean Pierre Daviau
Guest
 
Posts: n/a
Default document.images[0].X

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



  #2  
Old February 11th, 2006, 02:25 AM
Danny
Guest
 
Posts: n/a
Default Re: document.images[0].X


Try with offsetLeft or offsetHeight.

Danny
  #3  
Old February 13th, 2006, 10:25 PM
Jean Pierre Daviau
Guest
 
Posts: n/a
Default 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]


  #4  
Old February 13th, 2006, 11:45 PM
Jean Pierre Daviau
Guest
 
Posts: n/a
Default Re: document.images[0].X

Except

see my post on strange TR behavior


  #5  
Old February 14th, 2006, 09:05 AM
Evertjan.
Guest
 
Posts: n/a
Default 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)
  #6  
Old February 16th, 2006, 01:56 PM
Jean Pierre Daviau
Guest
 
Posts: n/a
Default 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


  #7  
Old February 16th, 2006, 01:56 PM
Jean Pierre Daviau
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

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 220,989 network members.