> It works fine, but I just can't get the custom message to work. All > the demos use a button > > I have tried a number of variations including copying code straight > from the demos. This should at least turn the overlay blue, but it > isn't - http//www/DearFamilyandFriends.com/tes.php > > <script src="includes/jquery-1.2.6.pack.js" type="text/javascript"></ > script> > <script src="includes/jquery.blockUI.js" type="text/javascript"></ > script> > <script src="includes/jquery.MultiFile.js" type="text/javascript"></ > script> > > <script language="javascript" type="text/javascript"> > jQuery('#test').click(function() { > jQuery.blockUI({ overlayCSS: { backgroundColor: '#00f' } }); > > setTimeout(jQuery.unblockUI, 2000); > }); > </script>
Nothing wrong with the code other than it needs to be wrapped in a document ready block: <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#test').click(function() { jQuery.blockUI({ overlayCSS: { backgroundColor: '#00f' } }); setTimeout(jQuery.unblockUI, 2000); }); }); </script>