style checkboxes

2 views
Skip to first unread message

Massimo Di Pierro

unread,
Sep 19, 2008, 2:28:21 PM9/19/08
to web...@googlegroups.com
This works great with web2py

http://loveandtheft.org/2008/09/19/styled-checkboxes-and-radiobuttons-with-jquery/

No tweaks needed, just copy the images and the js and include this in
the layout.html

<script src="http://totmacher.eu/jquery/radio/src/
jquery.checkize.js"></script>
<script>
images = {
checked:"{{=URL(r=request,c='static',f='images/
checked.gif')}}",
unchecked:"{{=URL(r=request,c='static',f='images/
unchecked.gif')}}"
};
$(document).ready(function() {
$("input[@type=checkbox]").checkize(images);
$("input[@type=radio]").radize(images);
});
</script>


Tito Garrido

unread,
Sep 21, 2008, 8:47:58 PM9/21/08
to web...@googlegroups.com
Cool!
--
Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______
Reply all
Reply to author
Forward
0 new messages