Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Javascript for redirecting to a non-Flash page?
From: Lena Björklund
Date: Thu, 3 Feb 2000 13:33:45 GMT

Thanx for your helpfullness. I think I can solve this now.

Lena B

RedStar wrote:

> Lena,
>
> "Still using version 3, actually."
> No problem with that at all. You do great work with it.
>
> "...some advice on how to redirect a visitor without the swf plug-in, to
> another "plain html"-page."
>
> OK here goes another one of my code posts.
> <!-- Code starts below
> <html>
> <head>
> <title>Flash Plugin Tester</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <meta name="Author" content="RedStar">
> <meta http-equiv="Expires" content="Mon, 21 Sep 1998 22:10:00 GMT">
> <meta http-equiv="Refresh" content="10;URL=noflash.html">
> <script language="JavaScript">
> var FlashIEOK= true ;
> function noFlash(){
> FlashIEOK = false ;
> }
> </script>
> </head>
> <body>
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="javascript:noFlash();" id="Flash" width="1" height="1">
> <script language=javascript>
> var FlashOK = false ;
> if (navigator.mimeTypes &&
> navigator.mimeTypes["application/x-shockwave-flash"] &&
> navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
> FlashOK = true ;
> }
> if ( FlashOK ) {
> location.href="flashok.html";
> } else if (!(navigator.appName &&
> navigator.appName.indexOf("Netscape")>=0 &&
> navigator.appVersion.indexOf("2.")>=0)){
> location.href="noflash.html";
> }
> </script>
> </object>
> <script language="JavaScript">
> if (FlashIEOK) {
> location.href="flashok.html";
> }
> </script>
> <div align="center"><h1>Flash Plugin Tester</h1></div>
> <div align="center"><a href="noflash.html">If you are not directed to
> the entrance page click here</a></div>
> </body>
> </html>
> --> Code ends above
>
> The above does what you want and I've never seen it fail. It can give
> some false negatives but should never give false positives.
> Basic idea is quite simple but if you dan't understand anything or can't
> get it to work give me a shout.
> The code is free for any use. Adapt to your needs. Have fun.
>
> .redstar.
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World’s Premier Flash Solutions Conference and Expo"
> March 27-29, Nob Hill Masonic Center, San Francisco, California
>
> -Register before Feb 25 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Javascript for redirecting to a n, Lena Björklund
  Re: FLASH: Javascript for redirecting to, RedStar

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]