Foros del Web » Programando para Internet » Jquery »

Highlight

Estas en el tema de Highlight en el foro de Jquery en Foros del Web. Buneas, En el UI de JQuery no encuentro un demo del Highlight. Alguien me puede mostrar como se emplea de la manera más sencilla?...
  #1 (permalink)  
Antiguo 03/01/2013, 15:58
 
Fecha de Ingreso: junio-2011
Mensajes: 342
Antigüedad: 12 años, 9 meses
Puntos: 5
Exclamación Highlight

Buneas,

En el UI de JQuery no encuentro un demo del Highlight. Alguien me puede mostrar como se emplea de la manera más sencilla?
  #2 (permalink)  
Antiguo 03/01/2013, 16:01
Avatar de rodrigo791  
Fecha de Ingreso: noviembre-2009
Ubicación: Uruguay
Mensajes: 1.339
Antigüedad: 14 años, 5 meses
Puntos: 168
Respuesta: Highlight

http://docs.jquery.com/UI/Effects/Highlight se refiere a esto?

use el buscador
  #3 (permalink)  
Antiguo 03/01/2013, 16:09
 
Fecha de Ingreso: junio-2011
Mensajes: 342
Antigüedad: 12 años, 9 meses
Puntos: 5
Exclamación Respuesta: Highlight

Cita:
Iniciado por rodrigo791 Ver Mensaje
[url]http://docs.jquery.com/UI/Effects/Highlight[/url] se refiere a esto?

use el buscador
No, me refiero al que sale aquí [URL="http://jqueryui.com/themeroller/"]http://jqueryui.com/themeroller/[/URL]. Pone Highlight / Error
  #4 (permalink)  
Antiguo 04/01/2013, 08:51
 
Fecha de Ingreso: junio-2011
Mensajes: 342
Antigüedad: 12 años, 9 meses
Puntos: 5
Exclamación Respuesta: Highlight

Encontré esto:

https://github.com/idlesign/ist-ui-notice.

Pero no lo logro hacer funcionar. De esta manera no funciona:

Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
  6.     <script src="./jquery.ui.notice.js"></script>
  7.    
  8. <style>
  9. .ui-notice-inner { padding: 0.7em; }
  10. .ui-notice-icon { float: left; margin-right: 0.3em; }
  11.  
  12. </style>
  13.  
  14. <script>
  15. $('#info_box').notice();
  16. $('#alert_box').notice({type: 'alert'});
  17. </script>
  18.  
  19. </head>
  20. <body>
  21. <div id="info_box">
  22.     Here we are at this beautiful island.
  23. </div>
  24.  
  25. <div id="alert_box">
  26.     Hey! Watch out for snarks!
  27. </div>
  28.  
  29.  
  30. </body>
  31. </html>
  #5 (permalink)  
Antiguo 04/01/2013, 10:19
Avatar de David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: Highlight

Solo necesitas agregar las clases al elemento que quieras, nada más:
Código HTML:
Ver original
  1. <div class="ui-widget">
  2.     <div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
  3.         <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
  4.         <strong>Hey!</strong> Sample ui-state-highlight style.</p>
  5.     </div>
  6. </div>
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.

Etiquetas: highlight, javascript
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:25.