jQuery(document).ready(function(){ //QUEUE UP WHICH BORDER OPACITY OPTIONS LOAD DEPENDING ON THE SELECTION OF BORDER TYPE. if (jQuery('#bordertype').val() == 'dark' || jQuery('#bordertype').val() == 'none') { jQuery('input#lightopacity').parents('tr').hide(); } if (jQuery('#bordertype').val() == 'light' || jQuery('#bordertype').val() == 'none') { jQuery('input#darkopacity').parents('tr').hide(); } jQuery('#bordertype').change(function() { if (jQuery(this).val() == '3D') { jQuery('input#lightopacity').parents('tr').show(); jQuery('input#darkopacity').parents('tr').show(); jQuery('#adminmenu li.menu-top,#adminmenu li.wp-menu-separator,#adminmenu #collapse-menu').css('border-top-width','1px'); jQuery('#adminmenu li.menu-top,#wpadminbar,#adminmenu li.wp-menu-separator').css('border-bottom-width','1px'); jQuery('#adminmenu').css('border-top-width','1px'); } else if (jQuery(this).val() == 'light') { jQuery('input#lightopacity').parents('tr').show(); jQuery('input#darkopacity').parents('tr').hide(); jQuery('#adminmenu li.menu-top,#adminmenu li.wp-menu-separator,#adminmenu #collapse-menu').css('border-top-width','1px'); jQuery('#adminmenu li.menu-top,#wpadminbar,#adminmenu li.wp-menu-separator').css('border-bottom-width','0'); jQuery('#adminmenu').css('border-top-width','0'); } else if (jQuery(this).val() == 'dark') { jQuery('input#lightopacity').parents('tr').hide(); jQuery('input#darkopacity').parents('tr').show(); jQuery('#adminmenu li.menu-top,#adminmenu li.wp-menu-separator,#adminmenu #collapse-menu').css('border-top-width','0'); jQuery('#adminmenu li.menu-top,#wpadminbar,#adminmenu li.wp-menu-separator').css('border-bottom-width','1px'); jQuery('#adminmenu').css('border-top-width','1px'); } else { jQuery('input#lightopacity').parents('tr').hide(); jQuery('input#darkopacity').parents('tr').hide(); jQuery('#adminmenu li.menu-top,#adminmenu li.wp-menu-separator,#adminmenu #collapse-menu').css('border-top-width','0'); jQuery('#adminmenu li.menu-top,#wpadminbar,#adminmenu li.wp-menu-separator').css('border-bottom-width','0'); jQuery('#adminmenu').css('border-top-width','0'); } }); //QUEUE UP WHETHER OR NOT THE ROW HOVER EFFECT COLOR PICKER WILL LOAD DEPENDING ON THE SELECTION OF "SHOW ROW HOVER EFFECT?". if (jQuery('#showrowhovereffect').val() == 'no') { jQuery('input#rowhovercolor').parents('tr').hide(); } jQuery('#showrowhovereffect').change(function() { if (jQuery(this).val() == 'no') { jQuery('input#rowhovercolor').parents('tr').hide(); } else { jQuery('input#rowhovercolor').parents('tr').show(); } }); });