Return to Snippet

Revision: 36715
at November 25, 2010 08:47 by serialk89


Updated Code
<script>
//WEBKIT == CHROME
if ($.browser.webkit) {
	document.write("HOLA CHROME");
	}else if ($.browser.msie){
   		if ($.browser.version>=7){
	  		if(screen.width<=1024){
				document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/style.css' />");
			}
			if((screen.width>=1088)&&(screen.width<=1360)){
				document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/css_1280_1360.css' />")
			}
			if(screen.width>=1600){
				document.write(" <link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/1600.css' media='screen' />");
			}
		}else{
	  		document.write("HOLA INTENET EXPLORER 6");
   		}
	}else if ($.browser.mozilla) {
   	 	if((screen.width<=1024)) {
			document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/style.css' />");
		}
		if((screen.width>=1088)&&(screen.width<=1360))	{
			document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/css_1280_1360.css' />");
		}
		if(screen.width>=1600){
			document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/1600.css' />");
		}
	}
</script>

Revision: 36714
at November 25, 2010 06:43 by serialk89


Initial Code
<script>
if ($.browser.chrome) {
	document.write("HOLA CHROME");
	}else if ($.browser.msie){
   		if ($.browser.version>=7){
	  		if(screen.width<=1024){
				document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/style.css' />");
			}
			if((screen.width>=1088)&&(screen.width<=1360)){
				document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/css_1280_1360.css' />")
			}
			if(screen.width>=1600){
				document.write(" <link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/1600.css' media='screen' />");
			}
		}else{
	  		document.write("HOLA INTENET EXPLORER 6");
   		}
	}else if ($.browser.mozilla) {
   	 	if((screen.width<=1024)) {
			document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/style.css' />");
		}
		if((screen.width>=1088)&&(screen.width<=1360))	{
			document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/css_1280_1360.css' />");
		}
		if(screen.width>=1600){
			document.write("<link rel='stylesheet' type='text/css' href='http://universitarios.cl/universidades/images/2011/1600.css' />");
		}
	}
</script>

Initial URL


Initial Description


Initial Title
DETECTAR NAVEGADOR Y DEFINIR CSS POR NAVEGADOR JAVASCRIPT

Initial Tags


Initial Language
JavaScript