Vorlage:Popupblocker: Unterschied zwischen den Versionen

K (Chrome-Erkennung gefixt.)
(Farbanpassung)
Zeile 1: Zeile 1:
<html><img src="http://knuddels-wiki.de/images/a/ab/Box_start.png"><script type="text/javascript"> function checkBrowserName(name){   
<html><script type="text/javascript"> function checkBrowserName(name){   
   var agent = navigator.userAgent.toLowerCase();   
   var agent = navigator.userAgent.toLowerCase();   
   if (agent.indexOf(name.toLowerCase())>-1) {   
   if (agent.indexOf(name.toLowerCase())>-1) {   
Zeile 26: Zeile 26:


</script>   
</script>   
</html><div class="kwbox1"><center>'''Popup-Blocker-Hilfen nach Browser'''</center></div>
</html>
<div class="kwbox1_txt"><center>[[Popup-Blocker Firefox|Firefox]] <span id="bff"></span>| [[Popup-Blocker Google Chrome|Google Chrome]] <span id="bgc"></span>| [[Popup-Blocker Internet Explorer|Internet Explorer]] <span id="bie"></span>| [[Popup-Blocker Opera|Opera]] <span id="bop"></span></center></div><html>
{{Box|Popup-Blocker-Hilfen nach Browser|<center>
<img src="http://knuddels-wiki.de/images/8/88/Box_end.png"></html>
[[Popup-Blocker Firefox|Firefox]] <nowiki>|</nowiki> [[Popup-Blocker Google Chrome|Google Chrome]] <nowiki>|</nowiki> [[Popup-Blocker Internet Explorer|Internet Explorer]] <nowiki>|</nowiki> [[Popup-Blocker Opera|Opera]]</center>}}


<noinclude>[[Kategorie:Vorlage]]</noinclude>
<noinclude>[[Kategorie:Vorlage]]</noinclude>

Version vom 7. Juli 2014, 13:05 Uhr

<html><script type="text/javascript"> function checkBrowserName(name){

  var agent = navigator.userAgent.toLowerCase();  
  if (agent.indexOf(name.toLowerCase())>-1) {  
    return true;  
  }  
  return false;  
}
 $(document).ready(function() {
 if(checkBrowserName('MSIE')){  
     $("#bie").text('(dein aktueller Browser) '); 
   }  
     
   else if(checkBrowserName('opera')){  
     $("#bop").text('(dein aktueller Browser) ');
   }  
     
   else if(checkBrowserName('firefox')){  
     $("#bff").text('(dein aktueller Browser) ');  
   }
   else if(checkBrowserName('chrome')){  
     $("#bgc").text('(dein aktueller Browser) ');  
   } 

});

</script> </html>

Popup-Blocker-Hilfen nach Browser