Actually, it worked fine in a header, or at least it did on my test page which had nothing but the header.
The problem with that is that the detection message will show up wherever the script is installed.
My advice is to do one of two things: install it wherever you want the message to display, or modify the script by removing the last few lines:
Code:
/*@cc_on
@if (@_jscript_version>4)
try { parasite_write(); }
catch (e) { parasite_wscript(); }
@end @*/
then putting the script in your header. Then, where you want to perform the check, you put in this code:
Code:
<script>parasite_write();</script>
I don't think there will be many instances where parasite_wscript() is called, I think that's meant for other uses such as checking one's own computer.
Unfortunately, it will only detect a half-installed gator. Once gator is completely installed, the javascript can't detect it. :^(
Ah yes, I see that now
Gotta have a look at my registry... surely if it can detect the installer DLLs, it can also detect Gator somehow...
... but wait a minute - I have Gator completely installed... and it detected it just fine...