Flash redirect

C

chip

I recently built a site and put a small flash movie in the banner. If the
user doesn't use Flash or Flash doesn't work in the user's browser, how do I
set up the page to redirect to a non-flash page where you have an image
instead of a movie?

Any suggestions on where I can find a script that will do this would be
appreciated.

Chip
 
S

SteveH

chip said:
I recently built a site and put a small flash movie in the banner. If the
user doesn't use Flash or Flash doesn't work in the user's browser, how do I
set up the page to redirect to a non-flash page where you have an image
instead of a movie?

Any suggestions on where I can find a script that will do this would be
appreciated.

Chip

You should ask this question in the Flash newsgroup, at
www.macromedia.com, or do a search at that site. Otherwise you can
simply make a text link in FP under the banner so it links to a page
with a static banner.

Steve H
 
J

John Cello

Chip:

Pay particular attention to the last line. This is where you will direct
them to either a flash or non-flash page.

FP2003 has this in the behaviors.

Try this:

<script language="JavaScript">
<!--
function FP_checkPlugin(pgn,url1,url2) {//v1.0
var fnd=false; if(navigator.userAgent.indexOf("MSIE")<0) {
if(navigator.plugins && navigator.plugins.length>0) {
varn=navigator.plugins.length;
for(i=0; i<n; i++) { if((navigator.plugins.name.indexOf(pgn)>=0) ||
(navigator.plugins.description.indexOf(pgn)>=0)) fnd=true; } } } else {
switch(pgn) { case"QuickTime": {
fnd=FP_detectActiveXControl('QuickTimeCheckObject.QuickTimeCheck.1');
break; } case "Windows Media Player": {
fnd=FP_detectActiveXControl('MediaPlayer.MediaPlayer.1');
break; } case "RealPlayer": {
fnd=(FP_detectActiveXControl('rmocx.RealPlayer G2 Control') ||
FP_detectActiveXControl('RealPlayer.RealPlayer(tm) ActiveX Control
(32-bit)') ||
FP_detectActiveXControl('RealVideo.RealVideo(tm) ActiveX Control
(32-bit)')); break; }
case "Shockwave": { fnd=FP_detectActiveXControl('SWCtl.SWCtl.1'); break;
} case "Flash":{
fnd=FP_detectActiveXControl('ShockwaveFlash.ShockwaveFlash.1'); break; }
} } if(url1!='') {
if(fnd) window.location=url1;}; if(url2!='') { if(!fnd)
window.location=url2; }
}

function FP_detectActiveXControl(sControlName) {//v1.0
var oControl;try{oControl=new ActiveXObject(sControlName);if(oControl==null)
return false;else return true;}catch(e){return false;}
}
// -->
</script>
</head>

<body onload="FP_checkPlugin('Flash',
/*href*/'http://www.yourdomain.com/flashpage.htm',
/*href*/'http://www.yourdomain.com/nonflashpage.htm')">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top