kdf said the following on 25/09/2005 22:57:
as long as you do not call it the fishbone skin,( so that I'm not expected to provide support for it), then I am 100% behind your right to steal any and all code you need, making any changes you want to create your own skin. At one time, there were quite a number of people making custom skins and posting them (some just slight variations on a core, some more radical). Unfortunately, they seemed to lose interest in keeping them up-to-date and they eventually disappeared. it would be great to see more websites with skin choices out and about.

While I'm not personally a big fan of a page full of checkboxes and pulldowns, my curiosity is very much engaged to see if anyone can do it with javascript alone.

This is used in phpMyAdmin:

function setCheckboxes(the_form, do_check)
{
var elts = (typeof(document.forms[the_form].elements['selected_db[]']) != 'undefined')
                  ? document.forms[the_form].elements['selected_db[]']
: (typeof(document.forms[the_form].elements['selected_tbl[]']) != 'undefined')
          ? document.forms[the_form].elements['selected_tbl[]']
          : document.forms[the_form].elements['selected_fld[]'];
    var elts_cnt  = (typeof(elts.length) != 'undefined')
                  ? elts.length
                  : 0;

    if (elts_cnt) {
        for (var i = 0; i < elts_cnt; i++) {
            elts[i].checked = do_check;
        } // end for
    } else {
        elts.checked        = do_check;
    } // end if... else

    return true;
} // end of the 'setCheckboxes()' function


However, I'm really out of my depth here - I'm no UI guru.

R.
--
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to