[Javascript] Img posiition?

FRANCESC ESCOFET fescofet at datadec.es
Tue Jul 17 11:40:28 CDT 2001


   I want put a layer in the position of a image, so when the user mouse
over the
image, i show then layer over the image this the code

    function show_layers(capa,ele)
     {
       document.all[capa].style.pixelLeft =
document.all[ele].style.pixelLeft;
       document.all[capa].style.pixelTop = document.all[ele].style.pixelTop;
       document.all[capa].style.visibility = "visible";
     }
  
where ele is the element (a image) over i put the mouse;

> -----Mensaje original-----
> De:	Filipiak, Bob (Contractor) [SMTP:filipiab at atsc.army.mil]
> Enviado el:	martes 17 de julio de 2001 18:34
> Para:	FRANCESC ESCOFET; ANTONIO PEREZ; ANTONIO TORTOLA
> Asunto:	RE: [Javascript] Img posiition?
> 
> O.K. let's start at the begging. Just what exactly are you trying to do? 
> 
> Bob Filipiak (Contractor) 
> MCP 
> 
> -----Original Message----- 
> From: FRANCESC ESCOFET [ <mailto:fescofet at datadec.es>] 
> Sent: Tuesday, July 17, 2001 12:23 PM 
> To: 'javascript at LaTech.edu' 
> Subject: RE: [Javascript] Img posiition? 
> 
> 
> Thanks but it dosent work, clientTop, and clientLeft dont work too 
> so...anybody knows how get the position of a any document element? 
> 



More information about the Javascript mailing list