Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/10/2011, 22:09
Avatar de lukazz
lukazz
 
Fecha de Ingreso: marzo-2011
Mensajes: 88
Antigüedad: 13 años, 1 mes
Puntos: 3
Respuesta: detectar si un usuario tiene instalado mi plugin

bueno esta pregunta la hice hace mucho tiempo pero ya tengo la solucion y me acordaba que marcofbb queria estar al tanto de esto


bueno la repuesta de esto es :

en el plugin para el chrome o para el firefox hay que poner esto


Código Javascript:
Ver original
  1. if (location.href.match(/^http:\/\/(www\.)?pagina\.net/i)) {
  2.     if (document.getElementById("reproductor")) {
  3.         if (document.getElementById("reproductor").src.match(/sin_plugin/i)) {
  4.             document.getElementById("reproductor").src = "";
  5.             document.getElementById("reproductor").removeAttribute("style");
  6.            }
  7.        }
  8. }


y en la pagina hay que poner un iframe por ejemplo el que uso yo:


Cita:
<iframe id="reproductor" style=" position:fixed;font-family: Arial, Helvetica, sans-serif; font-size: 2.5ex;float: left;z-index: 10000;width:100%;height:100%;margin-left: -1px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;top: 0%;left:0px;text-align: center;vertical-align: middle;padding:3px;opacity:0.90;" name="reproductor" width="0" height="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" src="http://www.bluepru.net63.net/sin_plugin"></iframe>
lo que hace el plugin es quitar el iframe y el style osea que es como si el iframe estuviera desactivado

y bueno después en el iframe tienen que abrir donde están para instalar sus plugin

bueno disculpen si no entendieron mucho lo que trate de explicar, saludos