Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Fkarol

Problema

Recommended Posts

Boa noite Estou fazendo um site no qual tem um menu em flash.Gostaria que em caso do usuário não ter o flash play instalado o site lhe redirecionasse pra uma outra pagina ou exibir um menu alternativo.Mas não sei como fazer isso.Alguém poderia me ajuda ?Agradeço desde já!!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Amigo, se você utiliza dreamweaver, nos behaviors existe uma função para checar o plugin, caso não o utilize ai vai o código que ele gera para verificar a existência do plugin

 

<html><head><title>Flash</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script language="JavaScript" type="text/JavaScript"><!--function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0  var ok=false; document.MM_returnValue = false;  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {	ok=(plugins && plugins[plgIn]);  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1	if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;	else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;	else ok=autoGo; }  if (!ok) theURL=altURL; if (theURL) window.location=theURL;}//--></script></head><body onLoad="MM_checkPlugin('Shockwave Flash','templuginflash.htm','naotempluginflash.htm',false);return document.MM_returnValue"></body><script name="Used by MM_checkPlugin" language="javascript"><!--with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+'<scr'+'ipt language="VBScript">\nOn error resume next\n'+'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');//--></script></html>

Valeu!!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.