Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/02/2012, 19:02
Avatar de chicohot20
chicohot20
 
Fecha de Ingreso: mayo-2009
Mensajes: 388
Antigüedad: 15 años
Puntos: 43
Respuesta: Evento resizable al aparecer cursores en jquery

Código HTML:
Ver original
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" type="text/css" media="all" />
  3. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
  4. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js" type="text/javascript"></script>
  5. <script language="javascript" type="text/javascript">
  6. $(function() {
  7.    $("#content").resizable();
  8.    $("#content .ui-resizable-handle").hover(function(){
  9.        $(this).parent().addClass("hover");
  10.        },
  11.        function(){$(this).parent().removeClass("hover");}
  12.        )
  13. });
  14.  
  15. #content { width: 150px; height: 150px; padding: 0.5em; }
  16. #content h3 { text-align: center; margin: 0; }
  17. .hover{background: #DDD;}
  18. </head>
  19. <div id="content" class="ui-widget-content">
  20. <h3 class=ui-widget-header>Resizable</h3>
  21. </div>
  22. </body>
  23. </html>