> You could reduce the code by using switch

And by eliminating duplicate code:

$('#modalBackdrop').top(wt).css(css).height(winHeight +
'px').width(winWidth + 'px').show();
modalContent.top(mdcTop + 'px').left(mdcLeft + 'px');
switch(animation){
    case 'fade':
        modalContent.fadeIn(speed);
        break;
  case 'slide':
        modalContent.hide().slideDown(speed);
        break;
  case 'show':
        modalContent.show();
        break;
}

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to