Sexyforms is a javascript library that improves the appearance of XHTML forms. It’s compatible with all of modern browsers, and also with Internet Explorer. It’s no-intrusive and it lets you create your own styles!





Form Elements – SelectBox with Ajax

You can install it as another script:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.2/mootools-yui-compressed.js"></script> <link type="text/css" rel="stylesheet" href="sexyforms-vista.css" media="all"/> <script type="text/javascript" src="sexyforms.v1.3.mootools.js"></script>
Where… :
sexyforms-vista.css is the name of the style to use. You can choose among these styles:
sexyforms.v1.3.mootools.js is the name of the script. If you want to get speed, you can try using the simplified version: sexyforms.v1.3.mootools.min.js
In mootools:
$$("input", "select", "textarea").each(function(el) {
el.DoSexy();
});
Example: Search the form with the class ’sexyform’ and beautify all its elements:
<script type="text/javascript">
window.addEvent('domready', function() {
$$(".sexyform input", ".sexyform select", ".sexyform textarea").each(function(el) {
el.DoSexy();
});
});
</script>
Example: Beautify an single element:
<input type="text" id="name" value="" />
<script type="text/javascript">
$('name').DoSexy();
</script>
Public Functions:
Converts a sad and boring element in a sexy one!
Converts a sexy element in a sad and boring one.
This script is published under license MIT.
Este artículo contiene los siguientes archivos:
SexyForms 1.3.1 - Octubre 30, 2009 * BugFixed: La lista del elemento Select no aparecia en el top correcto. SexyForms 1.3.0 - Octubre 03, 2009 * Mas compatibilidad con IE6 * Nuevo SelectBox con manejo de eventos * Bugs de posición en selectbox arreglados * SelectBox ahora recibe el foco * SelectBox ahora muestra iconos en IE6 & IE7 * Bug de Textarea en Opera arreglado SexyForms 1.2.0 - Septiembre 29, 2009 * Elemento Select eliminado. Ahora se usa el nativo para evitar errores. * Agregado InputFile * BugFixed: Se hace mejor uso de la herencia. * BugFixed: El textarea es del mismo tamaño en todos los navegadores. SexyForms 1.1.0 - Junio 20, 2009 * BugFixed: Float elements compatible * Decenas de cambios menores. SexyForms 1.0.0 - Abril 04, 2009 * Versión Inicial. * Mootools 1.2.2
No se preocupen, ya arregle el problema despues de un par de horas. Simplemente pasé todos los archivps denuevo
in sexyforms.v1.3.mootools.js
var option = document.id(this.element.options[iiC]);
should be
var option = this.element.options[iiC];[/js]
hola! Tengo una grave problema…lo q pasa esq tengo formularios en los q uso selects…con un boton reset para cancelar…pero resulta q los select no ovedecen al boton de reset!!!! claro oviamente porq son diferentes a un select normal ya q estan contruidos a base de imagenes!!! PERO ALGUIEN SABE ALGUNA FORMA DE REINICIARLOS SIN RECARGAR LA PAGINA????? De antemano muchas gracias..ojala alguien sepa como hacerlo!
Hola!
Tengo un problema, los listados no se ven bien, me aparece el listado con la clase y junto a el el mismo sin la clase y el que tiene la clase no responde, solo el sin clase.
Precisamente lo quiero para los listados!!! Mala suerte la mia!
Ayuda!!!
ASE...ESO ES PORQ TIENES LA LIBRERIA INCORRECTA..A MI ME PASABA ..DESCARGUE LA VERSION COMPLETA 1.2.4 Y SE ARREGLO EL PROBLEMA DE LOS SELECT…!!!!
http://mootools.net/download EN Download MooTools 1.2.4
mmmmmm
Como puedo aplicar SexyForm en SexyLigthBox ose quiero que al hacer click en “ingresar” me aparesca un SexyForm
de Antemano muchas gracias
Hello,
Have you an idea of the date when Sexy Forms can be used with JQuery ?
Thanks