[thelist] javascript question (easy?) <-- not so easy

Peter-Paul Koch gassinaumasis at hotmail.com
Thu Dec 13 12:23:38 CST 2001


>To your second suggestion, that will, if it succeeds, only
>detect whether or not the plugin exists, not whether it is
>enabled.

There is the enabled property of the plugins array in Netscape, but as far 
as I know there's nothing similar in Explorer.

>As for the first one, I am giving it a concerted effort, and I'm
>coming up short.  I'm sure it's my inexperience with javascript.
>  I'd like to get something that works in IE, then I can play
>with it until it works in netscape.
>
>All I need is the actual, real position of an element, not a
>position listed in a stylesheet.  I'm not looking to change the
>position, just to detect how far down the page the item (image,
>div, anything I can make invisible) exists, and say "if it's
>less than 75 pixels down the page, redirect".

My script is supposed to do exactly that. It doesn't depend on style sheets. 
In my example I influence the position of the elements only with a very 
general style sheet.

But of course the script is not perfect because this is a very complicated 
subject with lots of exceptions and exceptions to exceptions etc. But 
finding the position of an image should be possible.

Good luck,

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.





More information about the thelist mailing list