<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dixso.net &#187; jQuery</title>
	<atom:link href="http://dixso.net/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://dixso.net</link>
	<description>Desarrollo web</description>
	<lastBuildDate>Fri, 05 Feb 2010 08:09:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery submitCSS</title>
		<link>http://dixso.net/jquery/jquery-submitcss/</link>
		<comments>http://dixso.net/jquery/jquery-submitcss/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 19:38:42 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[submit]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=483</guid>
		<description><![CDATA[Este script lo he creado por la necesidad de hacer &#8220;bonitos&#8221; los input del tipo submit, ya que por ahora, todos son de sistema y cada navegador pone el suyo, pues bien, con el script jquey.submitCSS.js podemos hacer botones pero con input del tipo submit. En ejemplo que os muestro más a bajo he jugado [...]]]></description>
			<content:encoded><![CDATA[<p>Este script lo he creado por la necesidad de hacer &#8220;bonitos&#8221; los input del tipo submit, ya que por ahora, todos son de sistema y cada navegador pone el suyo, pues bien, con el script jquey.submitCSS.js podemos hacer botones pero con input del tipo submit. En ejemplo que os muestro más a bajo he jugado con capas para modificar vía CSS las imágenes de fondo, lo he hecho para tener más de un botón de otro color de fondo. Si queréis poner vuestras própias imágenes tendréis que jugar con los estilos.</p>
<p>El script es el siguiente:</p>
<pre class="brush: jscript;">
/*
 * jQuery submitCSS v1.0
 * http://dixso.net/
 *
 * Copyright (c) 2010 Julio De La Calle Palanques
 * Date: 2010-02-04 12:34:00 - (Jueves, 04 Feb 2010)
 *
 */
function submitCSS(){
	$(&quot;input[type=submit]&quot;).each(function(){
		if($(this).hasClass(&quot;submitCSS&quot;)){
			var theclass = $(this).parent().parent(&quot;div&quot;).attr(&quot;class&quot;);
			if(theclass != &quot;btnSubmitCSS&quot;){
				$(this).wrap(&quot;&lt;div class='btnSubmitCSS'&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&quot;);
			}
		}
	});
	isIE = !$.support.opacity,
	isIE6 = isIE &amp;&amp; !window.XMLHttpRequest
	if (isIE6) {
		$(&quot;.btnSubmitCSS&quot;).mouseover(function() {
			$(this).addClass(&quot;btnSubmitCSS-ie6&quot;);
		}).mouseout(function() {
			$(this).removeClass(&quot;btnSubmitCSS-ie6&quot;);
		});
	}
}</pre>
<p>El script necesita una hoja de estilos para añadir estilos al input:</p>
<pre class="brush: css;">
/**************************************************************************
submitCSS 20100204@JCP
***************************************************************************/
#btn-1 .btnSubmitCSS					{background:url(../imagenes/btn-left-gris.gif) no-repeat 0 0;}
#btn-1 .btnSubmitCSS div				{background:url(../imagenes/btn-right-gris.gif) no-repeat right top;}
#btn-2 .btnSubmitCSS					{background:url(../imagenes/btn-left-amarillo.gif) no-repeat 0 0;}
#btn-2 .btnSubmitCSS div				{background:url(../imagenes/btn-right-amarillo.gif) no-repeat right top;}
#btn-3 .btnSubmitCSS					{background:url(../imagenes/btn-left-rojo.gif) no-repeat 0 0;}
#btn-3 .btnSubmitCSS div				{background:url(../imagenes/btn-right-rojo.gif) no-repeat right top;}
.btnSubmitCSS							{padding-left:12px;}
.btnSubmitCSS div						{padding-right:18px; padding-left:6px;}
.btnSubmitCSS, .btnSubmitCSS div		{height:32px; float:left; display:block; line-height:28px; text-decoration:none; color:#FFF; cursor:pointer; font-weight:bold;}
.btnSubmitCSS div input 				{background:none; color:#FFF; border:none; width:auto; float:left; height:32px; padding:0; font-family:Verdana, Geneva, sans-serif; display:block; font-size:11px; cursor:pointer; font-weight:bold; margin:-3px 0 0 0;}
#container .btnSubmitCSS-active,
#container .btnSubmitCSS:hover			{background-position:bottom left;}
#container .btnSubmitCSS-active div,
#container .btnSubmitCSS:hover div	 	{background-position:bottom right;}</pre>
<p>Para que el script funcione tenéis que añadir la clase &#8216;submitCSS&#8217; al input submit.</p>
<pre class="brush: xml;">
&lt;input type=&quot;submit&quot; class=&quot;submitCSS&quot; value=&quot;Esto es un boton submit&quot; /&gt;
</pre>
<p>Para finalizar, tenéis que inicializar el script:</p>
<pre class="brush: jscript;">
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
	$(document).ready(function(){
		submitCSS();
	});
&lt;/script&gt;
</pre>
<p>Este script funciona para todos los navegadores, lo único a tener en cuenta es que cada navegador interpreta una tipografía diferente al igual que el tamaño, por lo demás todo perfecto.</p>
<p>Ejemplo: <a title="jQuery inputCSS" href="http://dixso.net/wp-content/examples/jquery/submitcss/" target="_blank">aquí</a>.<br />
Descarga: <a title="jQuery inputCSS" href="http://dixso.net/wp-content/examples/jquery/submitcss/download/jquery.inputCSS.rar" target="_blank">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/jquery-submitcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery equalHeight</title>
		<link>http://dixso.net/jquery/jquery-equalheight/</link>
		<comments>http://dixso.net/jquery/jquery-equalheight/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 16:23:25 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[equalHeight]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=475</guid>
		<description><![CDATA[Con este pequeño script podemos igualar la altura de los elementos que queramos: function equalHeight(group) { tallest = 0; group.each(function() { thisHeight = $(this).height(); if(thisHeight &#62; tallest) { tallest = thisHeight; } }); group.height(tallest); } Inicializamos el script y le indicamos la clase que tendrán los elementos: $(document).ready(function(){ //Igualamos la altura de los elementos equalHeight($(&#34;.igualarAltura&#34;)); [...]]]></description>
			<content:encoded><![CDATA[<p>Con este pequeño script podemos igualar la altura de los elementos que queramos:</p>
<pre class="brush: jscript;">
function equalHeight(group) {
    tallest = 0;
    group.each(function() {
        thisHeight = $(this).height();
        if(thisHeight &gt; tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}
</pre>
<p>Inicializamos el script y le indicamos la clase que tendrán los elementos:</p>
<pre class="brush: jscript;">
$(document).ready(function(){
	//Igualamos la altura de los elementos
	equalHeight($(&quot;.igualarAltura&quot;));
});
</pre>
<p>Podéis ver un simple ejemplo: <a target="_blank" href="http://dixso.net/wp-content/examples/jquery/equalheight/" title="jQuery equalHeight">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/jquery-equalheight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Browser Detect 1.1</title>
		<link>http://dixso.net/jquery/jquery-browser-detect-1-1/</link>
		<comments>http://dixso.net/jquery/jquery-browser-detect-1-1/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 09:14:00 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[Navegadores]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=465</guid>
		<description><![CDATA[Este script nos ayudará cuando maquetemos nuestras hojas de estilos y veamos que cada navegador interpretan cosas que no deberían ser así, muy común en IE, sobretodo en la versión 6. Antes de nada, se necesita la librería jQuery para hacer funcionar el script. ¿Qué hace el script? - Comprueba primero si el fichero de [...]]]></description>
			<content:encoded><![CDATA[<p>Este script nos ayudará cuando maquetemos nuestras hojas de estilos y veamos que cada navegador interpretan cosas que no deberían ser así, muy común en <del datetime="2009-09-18T08:11:22+00:00">IE</del>, sobretodo en la versión 6.</p>
<p>Antes de nada, se necesita la librería jQuery para hacer funcionar el script.</p>
<p><strong>¿Qué hace el script?</strong><br />
- Comprueba primero si el fichero de las css de cada navegador existe, si no existe, el script no se ejecuta, eto sirve para que el script no compruebe el navegador ni la versión del usuario.</p>
<p><em>¿Que ganamos con todo esto?</em><br />
<strong>Rapidez </strong>en la ejecución del script, es decir, solo añadirá la hoja de estilos que tengamos en el directorio /css/browsers/.</p>
<p>- Detecta el navegador <strong>Internet Explorer 8.0</strong></p>
<p>Script para comprobar rutas de ficheros físicos:</p>
<pre class="brush: jscript;">
function file_exists (url) {
    var req = this.window.ActiveXObject ? new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;) : new XMLHttpRequest();
    if (!req) {throw new Error('XMLHttpRequest not supported');}
    req.open('HEAD', url, false);
    req.send(null);
    if (req.status == 200){
        return true;
    }
    return false;
}
</pre>
<p>Especificamos a jQuery los navegadores (Útil para diferenciar Safari de Chrome).</p>
<pre class="brush: jscript;">
var userAgent = navigator.userAgent.toLowerCase();
jQuery.browser = {
	version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1],
	chrome: /chrome/.test( userAgent ),
	safari: /webkit/.test( userAgent ) &amp;&amp; !/chrome/.test( userAgent ),
	opera: /opera/.test( userAgent ),
	msie: /msie/.test( userAgent ) &amp;&amp; !/opera/.test( userAgent ),
	mozilla: /mozilla/.test( userAgent ) &amp;&amp; !/(compatible|webkit)/.test( userAgent )
};
</pre>
<p>Ejecutamos las condiciones si el fichero existe o no, si existe, comprobamos la versión del navagador del usuario y añadimos la hoja de estilos.</p>
<pre class="brush: jscript;">
//Ejecutamos las condiciones si el fichero existe o no.
$(document).ready(function(){
	jQuery.each(jQuery.browser, function(i, val) {
		if(file_exists(&quot;css/browsers/ie8.css&quot;) ){
			if(i==&quot;msie&quot; &amp;&amp; jQuery.browser.version.substr(0,3)==&quot;8.0&quot;){
				$('head').append('&lt;link rel=&quot;stylesheet&quot; href=&quot;css/browsers/ie8.css&quot; type=&quot;text/css&quot; /&gt;');
			}
		}
		if (file_exists(&quot;css/browsers/ie7.css&quot;)){
			if(i==&quot;msie&quot; &amp;&amp; jQuery.browser.version.substr(0,3)==&quot;7.0&quot;){
				$('head').append('&lt;link rel=&quot;stylesheet&quot; href=&quot;css/browsers/ie7.css&quot; type=&quot;text/css&quot; /&gt;');
			}
		}
		if (file_exists(&quot;css/browsers/ie6.css&quot;)){
			if(i==&quot;msie&quot; &amp;&amp; jQuery.browser.version.substr(0,3)==&quot;6.0&quot;){
				$('head').append('&lt;link rel=&quot;stylesheet&quot; href=&quot;css/browsers/ie6.css&quot; type=&quot;text/css&quot; /&gt;');
			}
		}
		if (file_exists(&quot;css/browsers/mozilla.css&quot;)){
			if($.browser.mozilla){
				$('head').append('&lt;link rel=&quot;stylesheet&quot; href=&quot;css/browsers/mozilla.css&quot; type=&quot;text/css&quot; /&gt;');
			}
		}
		if (file_exists(&quot;css/browsers/opera.css&quot;)){
			if($.browser.opera){
				$('head').append('&lt;link rel=&quot;stylesheet&quot; href=&quot;css/browsers/opera.css&quot; type=&quot;text/css&quot; /&gt;');
			}
		}
		if (file_exists(&quot;css/browsers/safari.css&quot;)){
			if($.browser.safari){
				$('head').append('&lt;link rel=&quot;stylesheet&quot; href=&quot;css/browsers/safari.css&quot; type=&quot;text/css&quot; /&gt;');
			}
		}
		if (file_exists(&quot;css/browsers/chrome.css&quot;)){
			if($.browser.chrome){
				$('head').append('&lt;link rel=&quot;stylesheet&quot; href=&quot;css/browsers/chrome.css&quot; type=&quot;text/css&quot; /&gt;');
			}
		}
	});
});
</pre>
<p><strong>Hojas de estilos predefinidas en el script:</strong><br />
<em>Internet Explorer 8.0</em> &#8211; <strong>ie8.css</strong><br />
<em>Internet Explorer 7.0</em> &#8211; <strong>ie7.css</strong><br />
<em>Internet Explorer 6.0</em> &#8211; <strong>ie6.css</strong><br />
<em>Mozilla Firefox</em> &#8211; <strong>mozilla.css</strong><br />
<em>Chrome</em> &#8211; <strong>chrome.css</strong><br />
<em>Opera</em> &#8211; <strong>opera.css</strong><br />
<em>Safari</em> &#8211; <strong>safari.css</strong></p>
<p><strong>Nota:</strong><br />
- Navegadores que soporta: IE8, IE7, IE6, Mozilla Firefox, Safari, Opera, Google Chrome<br />
- El script comprobará los ficheros en el directorio &#8216;css/browsers/nombre_del_navegador.css&#8217;.</p>
<p>Podéis ver el ejemplo <a target="_blank" href="http://dixso.net/wp-content/examples/jquery/jquery-browser-detect/" title="jQuery Browser Detect">aquí</a>.<br />
Descargar script: <a target="_blank" href="http://dixso.net/wp-content/examples/jquery/jquery-browser-detect/javascript/jquery.browser.detect.js" title="Descargar jQuery Browser Detect">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/jquery-browser-detect-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ocultar email con jQuery</title>
		<link>http://dixso.net/jquery/ocultar-email-con-jquery/</link>
		<comments>http://dixso.net/jquery/ocultar-email-con-jquery/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:23:32 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=453</guid>
		<description><![CDATA[Con este pequeño script podremos ocultar el email contra los spammers. $(function() { $('a.email').each(function(){ e = this.rel.replace('(arroba)','@'); //Remplaza el texto '(arroba)' por '@'. this.href = 'mailto:' + e; $(this).text(e); }); }); Añadimos la clase al tag href y substituimos el &#8216;@&#8217; por el que queramos, en este caso &#8216;(arroba)&#8217;. Ejemplo: aquí.]]></description>
			<content:encoded><![CDATA[<p>Con este pequeño script podremos ocultar el email contra los spammers.</p>
<pre class="brush: jscript;">
$(function() {
	$('a.email').each(function(){
		e = this.rel.replace('(arroba)','@'); //Remplaza el texto '(arroba)' por '@'.
		this.href = 'mailto:' + e;
		$(this).text(e);
	});
});
</pre>
<p>Añadimos la clase al tag href y substituimos el &#8216;@&#8217; por el que queramos, en este caso &#8216;(arroba)&#8217;.<br />
Ejemplo: <a href="http://dixso.net/wp-content/examples/jquery/ocultar-email/" title="Ocultar email con jQuery" target="_blank">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/ocultar-email-con-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS PopUp jQuery &amp; Ajax</title>
		<link>http://dixso.net/jquery/css-popup-jquery-ajax/</link>
		<comments>http://dixso.net/jquery/css-popup-jquery-ajax/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 13:00:13 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=340</guid>
		<description><![CDATA[Este post es la segunda parte del primer post, ya que se ha mejorado el script. Mejoras implementadas: - El script añade automáticamente las capas, no hace falta insertar el código en cada página. - Se carga el contenido por Ajax. - Podemos pasarle parámetros de anchura de la capa. //Variable que almacena la posición [...]]]></description>
			<content:encoded><![CDATA[<p>Este post es la segunda parte del <a href="http://dixso.net/jquery/css-popup-con-jquery/">primer post</a>, ya que se ha mejorado el script.</p>
<p><strong>Mejoras implementadas:</strong><br />
- El script añade automáticamente las capas, no hace falta insertar el código en cada página.<br />
- Se carga el contenido por Ajax.<br />
- Podemos pasarle parámetros de anchura de la capa.</p>
<pre class="brush: jscript;">
//Variable que almacena la posición del scroll, por defecto tiene valor 0.
scrollCachePosition = 0;
function popupCssShow (URL, width, height) { //Parámetros: URL (URL, Anchura de la capa, Altura de la capa)
	if (typeof document.body.style.maxHeight === &quot;undefined&quot;) {//Añade la propiedad maxHeight para IE6.
		$(&quot;body&quot;,&quot;html&quot;).css({height: &quot;100%&quot;, width: &quot;100%&quot;});
	}
	//La capa 'cssBackground' ocupa toda la pantalla para darle una opacidad.
	//La capa 'cssPopupContainer' es la capa madre del PopUp.
	if (!$(&quot;#cssBackground&quot;).length&gt;0) {
		$(&quot;body&quot;).append(&quot;&lt;div id=\&quot;cssBackground\&quot;&gt;&lt;/div&gt;&lt;div id=\&quot;cssPopupContainer\&quot;&gt;&lt;div id=\&quot;cssPopup\&quot;&gt;&lt;/div&gt;&lt;/div&gt;&quot;); //Añade las capas en la página.
	}
	if (width!=undefined) {
		$(&quot;#cssPopup&quot;).css(&quot;width&quot;,width);
	}
	if (height!=undefined) {
		$(&quot;#cssPopup&quot;).css(&quot;height&quot;,height);
		$(&quot;#cssPopup&quot;).css(&quot;overflow&quot;,&quot;auto&quot;);
	}
	$(&quot;#cssBackground&quot;).slideDown(&quot;slow&quot;); //Efecto jQuery
	scrollCachePosition = $(window).scrollTop();
	window.top.scroll(0,0);
	$(&quot;#cssPopup&quot;).load(URL,function(){
		//$(&quot;#cssPopupContainer&quot;).center(); //Si activamos esta línea y desactivamos la de abajo nos centrará el PopUp en el medio de la pantalla.
		$(&quot;#cssPopupContainer&quot;).css(&quot;top&quot;,50);
		ancho=$(window).width();
		$(&quot;#cssPopupContainer&quot;).slideDown(&quot;fast&quot;, function () {
			anchopopup=$(&quot;#cssPopup&quot;).width();
			$(&quot;#cssPopupContainer&quot;).css(&quot;width&quot;,ancho);
		});
	});
}

function popupCssHide () {
	$(&quot;#cssPopupContainer&quot;).slideUp(&quot;fast&quot;, function () {
		$(&quot;#cssBackground&quot;).fadeOut(&quot;fast&quot;,function () {
			$(&quot;#cssBackground&quot;).remove(); //Elimina la capa 'cssBackground'.
			$(&quot;#cssPopupContainer&quot;).remove(); //Elimina la capa 'cssPopupContainer'.
		});
	});
	if (scrollCachePosition &gt; 0) {
		window.top.scroll(0,scrollCachePosition); //Vuelve a la posición donde estaba el scroll.
		//Reseteamos la variable scrollCachePosition a 0 para poder ejecutar el script tantas veces como sea necesario.
		scrollCachePosition = 0;
	}
}
</pre>
<p>La hoja de estilos quedaría de la siguiente manera:</p>
<pre class="brush: css;">
#cssBackground 		{height:100%; width:100%; background-color:#000; display:none; position:fixed; top:0; left:0; z-index:100; float:left; opacity:0.65;}
#cssPopup 			{margin:0 auto;}
#cssPopupContainer 	{position:absolute; display:none; z-index:101; width:100%;}
</pre>
<p>Para que IE6 haga la opacidad y la posición fija tendremos que insertar álgún hack en un condicional en el ‘head’:</p>
<pre class="brush: xml;">
&lt;!--[if lt IE 7]&gt;
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;
	#cssBackground {_position:absolute !important; filter:alpha(opacity=65);}
&lt;/style&gt;
&lt;![endif]--&gt;
</pre>
<p>Para que IE7 haga la opacidad insertamos lo siguiente con un condicional en el ‘head’:</p>
<pre class="brush: xml;">
&lt;!--[if IE 7]&gt;
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;
	#cssBackground {filter:alpha(opacity=65);}
&lt;/style&gt;
&lt;![endif]--&gt;
</pre>
<p>Según la URL que venga añadirá un fichero u otro:<br />
Estructura del PopUp:</p>
<pre class="brush: php;">
&lt;?
if ($_GET['page']==&quot;pagina-1&quot;) {
	include (&quot;includes/pagina-1.php&quot;);
}elseif ($_GET['page']==&quot;pagina-2&quot;) {
	include (&quot;includes/pagina-2.php&quot;);
	}
?&gt;
</pre>
<p>Si le pasamos page=pagina-1 incluirá el fichero pagina-1.php tal y como lo pongo en la condición de arriba.</p>
<p>Para llamar al popup sería de la siguiente forma:</p>
<pre class="brush: xml;">&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;popupCssShow('popup.php?page=pagina-1', 460);&quot; title=&quot;Abrir PopUp&quot;&gt;Abrir PopUp&lt;/a&gt;</pre>
<p>También le pasamos el parámetro &#8217;460&#8242; para que nos habrá la ventana a &#8217;460px&#8217;.</p>
<p>Podéis ver un ejemplo <a target="_blank" href="http://dixso.net/wp-content/examples/jquery/css-popup-ajax">aquí</a>.<br />
Descarga del ejemplo <a href="http://dixso.net/wp-content/examples/jquery/css-popup-ajax/download/css-popup-ajax.rar">aquí</a>.</p>
<p>Nota:<br />
Para que os funcione tenéis que alojar el directorio en vuestro servidor o en local, ya que el ejemplo utilizo php para abrir un fichero u otro.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/css-popup-jquery-ajax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery Browser Detect</title>
		<link>http://dixso.net/jquery/jquery-browser-detect/</link>
		<comments>http://dixso.net/jquery/jquery-browser-detect/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 12:02:46 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[Navegadores]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=394</guid>
		<description><![CDATA[Versión mejorada del script: aquí.]]></description>
			<content:encoded><![CDATA[<p>Versión mejorada del script: <a href="http://dixso.net/jquery/jquery-browser-detect-1-1/">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/jquery-browser-detect/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Star Rating con jQuery</title>
		<link>http://dixso.net/jquery/star-rating-con-jquery/</link>
		<comments>http://dixso.net/jquery/star-rating-con-jquery/#comments</comments>
		<pubDate>Fri, 08 May 2009 15:00:00 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=365</guid>
		<description><![CDATA[Star Rating es un plugin de jQuery para votar/puntuar cosas. Aquí tienes unos ejemplos. Se implementación es relativamente fácil, añadimos las librerías javascript en el head: &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;jquery-1.3.2.min.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;jquery-ui-1.7.1.min.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;ui.stars.min.js&#34;&#62;&#60;/script&#62; Ahora, la hoja de estilos: &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;ui.stars.css&#34; /&#62; Configuración del script: &#60;script type=&#34;text/javascript&#34;&#62; $(function(){ $(&#34;#ratings&#34;).children().not(&#34;:radio&#34;).hide(); [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://orkans-tmp.22web.net/star_rating/">Star Rating</a> es un plugin de jQuery para votar/puntuar cosas.<br />
<a target="_blank" title="File style jQuery" href="http://dixso.net/wp-content/examples/jquery/rating/">Aquí</a> tienes unos ejemplos.</p>
<p>Se implementación es relativamente fácil, añadimos las librerías javascript en el head:</p>
<pre class="brush: jscript;">
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;jquery-ui-1.7.1.min.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;ui.stars.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Ahora, la hoja de estilos:</p>
<pre class="brush: css;">
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ui.stars.css&quot; /&gt;
</pre>
<p>Configuración del script:</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
	$(function(){
		$(&quot;#ratings&quot;).children().not(&quot;:radio&quot;).hide(); //Escondemos todo el contenido exceptuando los radios.
		$(&quot;#ratings&quot;).stars({
			oneVoteOnly: true, //Este parámetro sirve para que una vez pulsada alguna estrella haga el submit.
			split: 2, //Dividimos las estrellas en medios
			callback: function(ui, type, value)
			{
				$.post(&quot;ratings.php&quot;, {rate: value}, function(data) //Fichero donde procesamos las votaciones.
				{
					$(&quot;#ajax_response&quot;).html(data); //Capa donde cargamos el contenido en Ajax.
				});
			}
		});
	});
&lt;/script&gt;
</pre>
<p>El contenido html:</p>
<pre class="brush: xml;">
&lt;form id=&quot;ratings&quot; action=&quot;ratings1.php&quot; method=&quot;post&quot;&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;0.5&quot; id=&quot;rate1&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;1&quot; id=&quot;rate2&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;1.5&quot; id=&quot;rate3&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;2&quot; id=&quot;rate4&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;2.5&quot; id=&quot;rate5&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;3&quot; id=&quot;rate1&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;3.5&quot; id=&quot;rate2&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;4&quot; id=&quot;rate3&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;4.5&quot; id=&quot;rate4&quot; /&gt;
    &lt;input type=&quot;radio&quot; name=&quot;rate&quot; value=&quot;5&quot; id=&quot;rate5&quot; /&gt;
    &lt;input type=&quot;submit&quot; value=&quot;Enviar&quot; /&gt;
&lt;/form&gt;

&lt;br style=&quot;clear:both&quot; /&gt;
&lt;p id=&quot;ajax_response&quot;&gt;&lt;/p&gt;
</pre>
<p>- Ejemplo: <a target="_blank" title="Star Rating" href="http://dixso.net/wp-content/examples/jquery/rating/">aquí</a>.<br />
- Más ejemplos: <a target="_blank" title="Star Rating" href="http://orkans-tmp.22web.net/star_rating/#demos">aquí</a>.<br />
- Descarga: <a target="_blank" title="Star Rating" href="http://orkans-tmp.22web.net/star_rating/#download">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/star-rating-con-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Columnas de igual altura con jQuery</title>
		<link>http://dixso.net/jquery/columnas-de-igual-altura-con-jquery/</link>
		<comments>http://dixso.net/jquery/columnas-de-igual-altura-con-jquery/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 15:10:29 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=355</guid>
		<description><![CDATA[Cuando se utiliza una tabla, todas las columnas de este cuadro tiene la misma altura. Antiguamente esto no era un problema en absoluto ya que se maquetaba con tablas, pero ahora, con el aumento de las hojas de estilos (CSS) ahora es algo más complicado. Añadimos en el head la librería jQuery y el plugin [...]]]></description>
			<content:encoded><![CDATA[<p>Cuando se utiliza una tabla, todas las columnas de este cuadro tiene la misma altura. Antiguamente esto no era un problema en absoluto ya que se maquetaba con tablas, pero ahora, con el aumento de las hojas de estilos (CSS) ahora es algo más complicado.</p>
<p>Añadimos en el head la librería jQuery y el plugin EqualHeights:</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;javascript/jquery-1.2.6.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;javascript/transBG.jquery.plugin.js&quot;&gt;
</pre>
<p>Ponemos los estilos:</p>
<pre class="brush: css;">
&lt;style type=&quot;text/css&quot;&gt;
	body{color:#FFFFFF; font-family:Arial, Helvetica, sans-serif; font-size:12px;}
	#container {margin:0 auto; width:980px; padding-top:10px;}
	h1 {color:#000; font-size:18px;}
	h2 {color:#000; font-size:14px; padding-bottom:5px;}
	.container { float:left; clear:left; width:100%; padding:0 0 2em; }
	.box { float:left; width:24%; margin-right:1%; background-color:#FF0000; }
	.box p { margin:.5em; padding:0; }
&lt;/style&gt;
</pre>
<p>Y añadimos el selector:</p>
<pre class="brush: jscript;">
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
	$(function(){ $('#mismaAltura').equalHeights(); });
&lt;/script&gt;
</pre>
<p>La capa con la id=mismaAltura hará el efecto.</p>
<p>Y por último el código html:</p>
<pre class="brush: xml;">
        &lt;h2&gt;Columnas sin igual alturas&lt;/h2&gt;
        &lt;div class=&quot;box&quot;&gt;&lt;p&gt;A - Lorem ipsum dolor sit amet&lt;/p&gt;&lt;/div&gt;
        &lt;div class=&quot;box&quot;&gt;&lt;p&gt;B - consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&lt;/p&gt;&lt;/div&gt;
        &lt;div class=&quot;box&quot;&gt;&lt;p&gt;C&lt;/p&gt;&lt;/div&gt;
        &lt;div class=&quot;box&quot;&gt;&lt;p&gt;D - Ut enim ad minim&lt;/p&gt;&lt;/div&gt;
        &lt;br clear=&quot;all&quot; /&gt;&lt;br /&gt;
        &lt;h2&gt;Columnas con la misma altura&lt;/h2&gt;
        &lt;div class=&quot;container&quot; id=&quot;mismaAltura&quot;&gt;
            &lt;div class=&quot;box&quot;&gt;&lt;p&gt;A - Lorem ipsum dolor sit amet&lt;/p&gt;&lt;/div&gt;
            &lt;div class=&quot;box&quot;&gt;&lt;p&gt;B - consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.&lt;/p&gt;&lt;/div&gt;
            &lt;div class=&quot;box&quot;&gt;&lt;p&gt;C&lt;/p&gt;&lt;/div&gt;

            &lt;div class=&quot;box&quot;&gt;&lt;p&gt;D - Ut enim ad minim&lt;/p&gt;&lt;/div&gt;
        &lt;/div&gt;
</pre>
<p>Ejemplo: <a target="_blank" title="File style jQuery" href="http://dixso.net/wp-content/examples/jquery/equalheights/">aquí</a>.<br />
Descarga: <a target="_blank" title="File style jQuery" href="http://dixso.net/wp-content/examples/jquery/equalheights/download/equalheights.rar">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/columnas-de-igual-altura-con-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File style: plugin jQuery</title>
		<link>http://dixso.net/jquery/file-style-plugin-jquery/</link>
		<comments>http://dixso.net/jquery/file-style-plugin-jquery/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 12:26:47 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=291</guid>
		<description><![CDATA[Este plugin nos ayudará a modificar el botón del input file ya que los navegadores no lo permiten, de momento. Primero añadimos la librería jQuery y la del dicho plugin. &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;../../common/jquery-1.3.2.min.js&#34;&#62;&#60;/script&#62; &#60;script language=&#34;javascript&#34; type=&#34;text/javascript&#34; src=&#34;javascript/jquery.filestyle.pack.js&#34;&#62;&#60;/script&#62; Llamamos al input con la clase &#8216;inputFile&#8217; y lo iniciamos: $(function() { $(&#34;.inputFile&#34;).filestyle({ image: &#34;imagenes/examinar.gif&#34;, //Ruta de [...]]]></description>
			<content:encoded><![CDATA[<p>Este <a href="http://www.appelsiini.net/projects/filestyle" target="_blank">plugin</a> nos ayudará a modificar el botón del input file ya que los navegadores no lo permiten, de momento.</p>
<p>Primero añadimos la librería jQuery y la del dicho plugin.</p>
<pre class="brush: jscript;">
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;../../common/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;javascript/jquery.filestyle.pack.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Llamamos al input con la clase &#8216;inputFile&#8217; y lo iniciamos:</p>
<pre class="brush: jscript;">
	$(function() {
		 $(&quot;.inputFile&quot;).filestyle({
			 image: &quot;imagenes/examinar.gif&quot;, //Ruta de la imagen (botón).
			 imageheight:24, //Height de la imagen.
			 imagewidth: 96, //Widht de la imagen.
			 width: 250 //Tamaño del input.
		 });
	});
</pre>
<p>Le damos un pequeño estilo:</p>
<pre class="brush: css;">
.inputFile {
	border:#bbb solid 1px;
	height:20px;
}
</pre>
<p>Ejemplo: <a target="_blank" title="File style jQuery" href="http://dixso.net/wp-content/examples/jquery/input-file/">aquí</a>.<br />
Más ejemplos: <a target="_blank" title="File style jQuery" href="http://www.appelsiini.net/projects/filestyle/demo.html">aquí</a>.<br />
Descarga del plugin: <a target="_blank" title="File style jQuery" href="http://dixso.net/wp-content/examples/jquery/input-file/download/input-file.rar">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/file-style-plugin-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tooltip con jQuery</title>
		<link>http://dixso.net/jquery/tooltip-con-jquery/</link>
		<comments>http://dixso.net/jquery/tooltip-con-jquery/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 14:52:14 +0000</pubDate>
		<dc:creator>Julio</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://dixso.net/?p=270</guid>
		<description><![CDATA[Un tooltip es una herramienta de ayuda visual patentada por Microsoft, que funciona al situar o pulsar con el ratón sobre algún elemento gráfico, mostrando una ayuda adicional para informar al usuario de la finalidad del elemento sobre el que se encuentra. Crear un tooltip usando jQuery es muy sencillo, lo primero es añadir los [...]]]></description>
			<content:encoded><![CDATA[<p>Un tooltip es una herramienta de ayuda visual patentada por Microsoft, que funciona al situar o pulsar con el ratón sobre algún elemento gráfico, mostrando una ayuda adicional para informar al usuario de la finalidad del elemento sobre el que se encuentra.</p>
<p>Crear un tooltip usando jQuery es muy sencillo, lo primero es añadir los estilos que queremos que tenga nuestro tooltip:</p>
<pre class="brush: css;">
	#capaHelp {
		display:none;
		background:url(imagenes/tooltip.png) no-repeat top left;
		width:622px;
		padding:20px 10px 0 20px;
		height:82px;
		color:#000;
		font-weight:bold;
		margin:-100px 0 0 185px;
		position:absolute;
		z-index:101;
	}
	#capaContenido {
		padding:2px 25px 0 0;
		float:left;
		font-size:12px;
		color:#FFF;
		font-weight:bold;
		position:absolute;
	}
</pre>
<p>La capa &#8216;capaHelp&#8217; es la capa contenedora del tooltip por eso la posicionamos donde queremos que aparezca y finalmente sobreposicionamos la capa con un z-index.</p>
<p>Añadimos el efecto con jQuery:</p>
<pre class="brush: jscript;">
$(function() {
	$(&quot;#icoHelp&quot;).mouseover(function(event) {
		$(&quot;#capaHelp&quot;).slideToggle();
	});
	$(&quot;#icoHelp&quot;).mouseout(function(event) {
		$(&quot;#capaHelp&quot;).slideToggle();
	});
});
</pre>
<p>La id &#8216;icoHelp&#8217; tendrá el evento mouseover y mouseout con un efecto &#8216;slideToggle&#8217; de jQuery.<br />
Como ya he dicho antes, este script es bastante simple pero si más no muy bonito, aquí tenéis más scripts sobre <a href="http://craigsworks.com/projects/simpletip/" target="_blank">tooltips</a> en jQuery.</p>
<p>Ejemplo: <a href="http://dixso.net/wp-content/examples/jquery/tooltip-jquery/" title="Tooltip en jQuery" target="_blank">aquí</a>.<br />
Descarga: <a href="http://dixso.net/wp-content/examples/jquery/tooltip-jquery/download/tooltip-jquery.rar" title="Tooltip en jQuery" target="_blank">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dixso.net/jquery/tooltip-con-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
