Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy If User cannot see flash, redirect to another page

    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 .

    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:


    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
    Last edited by chriscct7; 12-14-2010 at 02:57 AM. Reason: says we need code tags...just found that out...

  • #2
    New Coder
    Join Date
    Dec 2010
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Still waiting for reply
    Last edited by chriscct7; 12-14-2010 at 03:00 AM. Reason: I fixed hte first post, which was hte reason for this reply, but i cant figure out how to get rid of the reply itself

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by chriscct7 View Post
    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/h...vaplugs02.html
    http://www.featureblend.com/javascri...n-library.html

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

  • #4
    New Coder
    Join Date
    Dec 2010
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by chriscct7 View Post
    ....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/...indetect.shtml

    Download the plugins.js file and then:-

    Code:
    <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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •