Escrito por: Martín el 09-03-2010 10:00:02 y leído 945 veces

TinyTips es un plugin para jQuery que tiene como objetivo mejorar los alt y titles de nuestros enlaces. Su ventaja es que es super liviano y fácil de implementar. Su desventaja es que no persigue al ratón y se queda estático y no termina de ser del todo agradable.
Su implementación es muy fácil, basta la librería jQuery, un .JS super liviano y un poquito de CSS para adornar tus tooltips a tu gusto.
Puse una demo online, que no es más que un retoque de la original creada por Mike Merrit en su blog, pero bien vale porque la simplifiqué a un solo estilo de tip. Para descargarlo, no dejes de visitar la web de su autor.
Código XHTML
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>tinyTips 1.0</title>
<link rel="stylesheet" type="text/css" media="screen" href="/path/to/yourStyleSheet.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="/path/to/jquery.tinyTips.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('a.tTip').tinyTips('light', 'title');
});
</script>
</head>
<body>
<div id="global_wrapper">
<h1>Testing tinyTips</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<a class="tTip" href="#" title="This tooltip is using the title of this anchor tag.">Aenean ut nunc metus</a>, gravida tincidunt libero.
Proin molestie risus at odio luctus condimentum. Sed molestie bibendum orci a faucibus. Vivamus vel lorem ut augue laoreet cursus.
Maecenas vestibulum nibh non nibh viverra posuere. Sed <a class="tTip" href="#" title="This one is also using the title.">tristique eleifend</a> elit sit amet varius.</p>
</div>
</body>
</html>Código JAVASCRIPT
<script type="text/javascript">
$(document).ready(function() {
$('a.tTip').tinyTips('light', 'title');
});
</script>Código CSS
.lightTip { width: 342px; }
.lightTip .content { width: 310px; padding: 10px; border: 6px solid #e2e2e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #ffffff; color: #020202; }
.lightTip .bottom { height: 14px; background: url(../images/notch-white.png) top center no-repeat; }
.yellowTip { width: 342px; }
.yellowTip .content { width: 310px; padding: 10px; border: 6px solid #f9e98e; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #fbf7aa; color: #020202; }
.yellowTip .bottom { height: 14px; background: url(../images/notch-yellow.png) top center no-repeat; }
.orangeTip { width: 342px; }
.orangeTip .content { width: 310px; padding: 10px; border: 6px solid #f9cd8e; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #fbe3aa; color: #020202; }
.orangeTip .bottom { height: 14px; background: url(../images/notch-orange.png) top center no-repeat; }
.redTip { width: 342px; }
.redTip .content { width: 310px; padding: 10px; border: 6px solid #ce6f6f; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #f79992; color: #020202; }
.redTip .bottom { height: 14px; background: url(../images/notch-red.png) top center no-repeat; }
.greenTip { width: 342px; }
.greenTip .content { width: 310px; padding: 10px; border: 6px solid #a9db66; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #cae8a2; color: #020202; }
.greenTip .bottom { height: 14px; background: url(../images/notch-green.png) top center no-repeat; }
.blueTip { width: 342px; }
.blueTip .content { width: 310px; padding: 10px; border: 6px solid #36a4d9; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #90d8f0; color: #020202; }
.blueTip .bottom { height: 14px; background: url(../images/notch-blue.png) top center no-repeat; }
.purpleTip { width: 342px; }
.purpleTip .content { width: 310px; padding: 10px; border: 6px solid #8671de; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #a290f0; color: #020202; }
.purpleTip .bottom { height: 14px; background: url(../images/notch-purple.png) top center no-repeat; }
.darkTip { width: 342px; }
.darkTip .content { width: 310px; padding: 10px; border: 6px solid #303030; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #505050; color: #f8f8f8; }
.darkTip .bottom { height: 14px; background: url(../images/notch-dark.png) top center no-repeat; }
Categorías: Tooltip • Jquery • Css • •
tinytips • menu estatico jquery • tooltip atractivos • jquery Tinytips • jQuery Tooltip Plugin png • lista atractiva con jquery • facil tooltip jquery • tinyTips documentation • jQuery y TinyTips • link dentro de tooltip • tinytips jquery • tooltips jquery • facil tooltip • jquery tooltips 2011 • tooltip tynitips • tooltip jquery title css • tooltip en imagenes con jquery • super tooltip jquery • tooltip content html • tynitips • tooltips jquery con imagenes • listas atractivas con jquery • tinytip para otros tags • tiny tooltips jquery • tooltip imagenes jquery • tooltips jquery soporte link • tooltips con imagenes jquery • image mapster#sclient=psy-ab • tooltip fijo javascript • mejorar los titles con jquery • tooltip with links imagenes jquery • jquery datepicker tooltip css • jquery + TinyTips • jquery tooltip sencillo tooltips • javascript mejorar tooltip • tooltip facil jquery • tooltip imagenes jquery color • listas atractivas js • tooltip facil con jquery • jquery mejorar title • tinytip estilos • tooltip html content • mapster conflicted with fileupload • tooltip jquery blogger • como ver imagenes tinytip • desplazarse dentro de un tooltip con jquery y css • jquery tooltip derecho • usar anchors tinyscrollbar • tinytips con jquery • plugin jquery tooltips con imagenes • imagenes jquery alt tooltip • light javascript tooltip 2011 • tooltip jquery con imagenes • implementar jquery tinytips • jquery lateral tooltips menu • funcion javascript con tinytips • tooltip html css • tooltip jquery sin borde • tinytips css • tooltip aumentar tamaño imagen • width tooltip • center text tinytip • tinyTip • menus con jquery atractivos • lateral tooltips css • sistema de tooltip contextual jquery • jquery no-repeat • jquery tooltip 2011 • datepicker script atractivo descargar • tinytips para jquery • html to pdf width jquery • tooltips css facil • tinytip documentation • incrementar y disminuir width jquery • tooltips from center jquery • mejorar alt html con jquery • adornar los tooltips con css • disqus tooltips • aumentar el tamaño de un tooltip • jquery light tooltip 2011 • tooltip jquery con imagenes y link • tooltip jquery alertas codigos demos • jquery tooltip HTML content • ToolTips jquery images and text • codigo html tooltip para agrandar imagenes • tooltip atractivo con jquery • sistema de votacion con jquert • jquery tinyscrollbar min js horizontal • tooltip yellow jquery • tinytips help tooltip • tooltip con imagenes css y jquery • jquery atractivos • tooltip jquery imagenes • css letras atractivas formulario • menu jquery horizontal no supere borde derecho • tooltip css jquery center • tooltip jquery facill • jquery tooltip center • jquery tooltip background image • tooltip disqus •
acordeón actionscript ajax alert ampliar imágenes android antes y después as audio aumentar letra barra desplazamiento blur bordes redondeados botón derecho calcular distancia calendario chart chrome collapse columnas combobox contar caracteres contar followers contextual css cu3er códigos date-picker descargas desenfoque desplazamiento dhtml disminuir letra dominios editor enlaces externos error 404 estrellitas expander fade fecha file upload filtrar contenido flash font size formulario formularios fotografías fpdf frames galería gmail google google docs gratis headers htaccess html html5 iconos ie6 igualar columnas inyección cabeceras ipad iphone javascript jquery jquery ui json lavalamp librería librerías lightbox limitar caracteres links lista listas listbox mail injection maquetación marcos mensajes menu menú menú lateral miniaturas mootools mouseover mp3 multinivel mysql máscaras móvil navegadores no conflict notas adhesivas notificaciones oauth ofuscador ordenar organigrama pdf php phpmailer picker player playlist plugin png portfolio preview reproductor reproductor de música safari scroll scrollto select selector de color sistema de votación slider snippets spam star rating subir ficheros switch mode tablas tamaño texto target blank textarea thumbnail tooltip twitter usuarios activos validacion validación validate videos vtip wap webkit www wysiwyg youtube zoom

© 2012 Martin Iglesias - Todos los derechos reservados