Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help tweaking a non-flash redirect

Status
Not open for further replies.

glorygal

Technical User
Mar 3, 2010
2
US
Hi there,

I have a flash site and I have created a static site for people who do not have flash. I have this script which prompts to install Adobe flash. Instead of the alert, I would like the user to be automatically redirected to the static site and not be prompted to install flash. How would I alter this script to do that?

<script type="text/javascript">
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {
myFlashHeader('flash/header',580,400,'#000000','header_id','custom.xml');
} else {
alert("Your version of Flash player is rather old. We suggest you to upgrade your Flash player to version "+requiredMinorVersion+" (at least).The latest version can be downloaded here : }

</script>
 
Remove the alert, and use window.location to send them
wherever it is you want to send them.

Code:
...
else {
         window.location="[URL unfurl="true"]http://www.mydomain.com/noflashsitepage.html";[/URL]
                }

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thank you very much! Worked like a charm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top