Don't like ads? PRO users don't see any ads ;-)
Guest

BlockUI Call from Pixfor

By: devgeeks on Jun 14th, 2012  |  syntax: JavaScript  |  size: 0.55 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Spinner by default, use where threadedness will allow it to spin
  2. icon = icon || "159.gif";
  3.  
  4. $.blockUI({
  5.         css: {
  6.                 border: '1px solid grey',
  7.                 padding: '15px',
  8.                 backgroundColor: '#000',
  9.                 '-webkit-border-radius': '10px',
  10.                 opacity: 1,
  11.                 color: '#fff',
  12.                 left: '20%',
  13.                 width:'50%',
  14.                 'font-family': 'Helvetica'
  15.         },
  16.         overlayCSS:  {
  17.                 backgroundColor: 'rgba(0,0,0,0.2)',
  18.                 opacity: 1
  19.         },
  20.         message: '<div><img src="images/' + icon + '" width="60" \/>'+
  21.                         '<br \/>'+
  22.                         '<div style="margin-bottom: 5px;">'+
  23.                         message+
  24.                         '<\/div><\/div>'
  25. });