[thelist] Workaround - Apple's Quicktime Detect JS doesn't work (all the time)?
AtdtXav
atdtxav at yahoo.com
Wed Dec 12 13:33:48 CST 2001
Here is the workaround solution we found (I love sneaky things
like this):
There is an html/image navbar that appears below the majority of
the page which is entirely quicktime. We're going to check for
the image location (using document.image[0].style.pixelTop) upon
onLoad, and if it's above say 75 pixels from the top, we will
-know- the quicktime did not load, even though the user passed
the "isquicktimeInstalled" script. At this point we can
redirect them to a page that insists that if they're going to
use the site, they enable their plugins (and give instructions).
Admittedly, this is quite a bit more javascript than I'm used
to, so I may run afoul of IE/NS incompatibility or just not be
thinking correctly.
Wish me luck!
- Scott
PS if you see something drastically wrong with the idea, please
feel free to let me know ;)
--- AtdtXav <atdtxav at yahoo.com> wrote:
> It seems that if you disable plugins, but have quicktime
> installed, the js that apple recommends you use to detect just
> lets you glide on in. The site I'm helping with is almost
> entirely quicktime, so this is obviously a no-no. We're only
> supporting 4.0+ browsers.
>
> My question is, is there a better script than the one below
> for
> this? Any way to detect if a plugin is actually enabled, and
> redirect if it isn't?
>
> Thanks!
> Scott
>
> ------
> <SCRIPT LANGUAGE=JavaScript><!--
> var haveqt = false;
> // -->
> </SCRIPT>
> <SCRIPT language=VBScript>
> On Error Resume Next
> Set theObject =
> CreateObject("QuickTimeCheckObject.QuickTimeCheck.1")
> On Error goto 0
>
> If IsObject(theObject) Then
> If theObject.IsQuickTimeAvailable(0) Then
> haveqt = true
> End If
> End If
> // -->
> </SCRIPT>
> <SCRIPT LANGUAGE=JavaScript><!--
> if (navigator.plugins) {
> for (i=0; i < navigator.plugins.length; i++ ) {
> if (navigator.plugins[i].name.indexOf("QuickTime") >= 0)
> { haveqt = true; }
> }
> }
> // -->
> </SCRIPT>
> <SCRIPT LANGUAGE=JavaScript><!--
> var bVersion = navigator.appVersion.indexOf("MSIE 4.5",0) + 1
> if (bVersion >= 1) {
> { haveqt = true; }
> }
> // -->
> </SCRIPT>
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
More information about the thelist
mailing list