[plug] Javascript puzzler.

Mark Fryer mfryer at westnet.com.au
Thu Aug 17 14:51:03 WST 2006


Shayne O'Neill wrote:
> Got a bit of a strange request that's had me looking at google for a
> couple of days and sort of glazing over on it.
>
> Basically I'm trying to work out if theres a way of working out if a
> html page element (specifically an image) is partly obscured, and if so
> , fully hideing it.
>
> Ie if I have some images
>
> W
> X
> Y
> Z
>
> All in a div with something like overflow: hidden set, and Z is only
> half visible, can Z be fully hidden?
>
> Its got me stumped! Anyone encountered something like this?
>
>   
Is it so far outside the box to get the size of the div using 
div.offsetheight and then adding the size of image.height for W,X and Y ?



More information about the plug mailing list