...

View Full Version : If User cannot see flash, redirect to another page



chriscct7
12-14-2010, 02:51 AM
Ok, im stuck. Ive tryed about 10 solutions from Google. None are working.
Ok, I made a site in Flash, and a second site in HTML. I want to automatically redirect people from my flash site (indexhigh.html) to my html site (indexlow.html) if they can't see my flash movie. Here's the flash page URL: http://testnewsite.netau.net/indexhigh.html (http://testnewsite.netau.net/indexhigh.html).

Restrictions: This redirect MUST be done using javascript or without having me to download another swfobject file. Please paste completed code.
Heres my current code:



<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Website</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '940',
'height', '940',
'src', 'Website',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Website',
'bgcolor', '#ffffff',
'name', 'Website',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'Website',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="940" height="940" id="Website" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Website.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="Website.swf" quality="high" bgcolor="#ffffff" width="940" height="940" name="Website" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
<table width="889" border="2" cellspacing="0" cellpadding="0">
<tr>
<td width="91" bgcolor="#FFFFFF">Site created by:</td>
<td width="232"><a href="http://www.christoff.tk"><img src="my_Logo.png" width="197" height="169"></a></td>
<td width="242"><a href="http://www.fcw.comoj.com"><img src="logo3.JPG" width="205" height="62"><br>
Free Charity Websites
</a></td>
<td width="112">And by the</td>
<td width="198"><p><img src="untitled.png" width="77" height="86"><br>
Fort Myers High School <br>
Web Design 2 Students from<br>
1st Period<br>
Team leader: Chris Christoff
</p></td>
</tr>
</table>
</body>
</html>Chris

chriscct7
12-14-2010, 02:53 AM
Still waiting for reply

Philip M
12-14-2010, 07:56 AM
Ok, im stuck. Ive tryed about 10 solutions from Google. None are working.

Perhaps the fault, dear Brutus, lies not in the stars ..........

Have a look at
http://www.adobe.com/support/flash/how/shock/javaplugs/javaplugs02.html
http://www.featureblend.com/javascript-flash-detection-library.html

It is your responsibility to die() if necessary….. - PHP Manual

chriscct7
12-14-2010, 10:57 AM
not what im looking for....i need something that automatically redirects people if they dont have flash.... also i need either hte final code inserted into the code i pasted above or step by step instructions...im just starteing at web designing.

Philip M
12-14-2010, 12:28 PM
....i need.... also i need .....
hmmmm...

As I remarked, "Perhaps the fault, dear Brutus, lies not in the stars .........."

Another perfectly good script is at
http://www.javascriptkit.com/script/script2/plugindetect.shtml

Download the plugins.js file and then:-


<script type = "text/javascript" src = "plugins.js"></script>

<script type = "text/javascript">
var ind = pluginlist.indexOf("Flash")
if (ind != -1) {
alert ("You have Flash installed");
}
else {
window.location = "http://www.google.com"; // redirect if Flash not detected
}

</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum