andyd34 Posted March 9, 2010 Share Posted March 9, 2010 2 question or problems really, I have the following code $("body").append($("<div id='lightbox'></div>").css({'width':'100%','height':'100%','left':'0','top':'0','background-color':'#000000','position':'fixed','display':'none'}).fadeTo(1000,., function(){ }); var boxTop = $('#boxContents').height()/2; $("body").append($("<div id='boxContents'></div>").css({'width':'400px','min-height':'50px','left':'50%','top':'50%','margin-left':'-200px','margin-top':'-'+boxTop+'px','background-color':'#FFF','position':'fixed','display':'none'}).slideDown(1000)); I have trying to get the boxContents displaying after the lightbox has finished but can't, when i put it within the lightbox function it doesnt show at all. Secondly, how would I go about putting all this in a stand alone function?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.