Ok so I've been following this tutorial - http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/ to get a popup to fade in on my site. But that tutorial has the popup fade in after you click a button. I want the popup to fade in as soon as the page loads. There's got to be a quick fix to this. I think this is the code that needs editing: //CONTROLLING EVENTS IN jQuery $(document).ready(function(){ //LOADING POPUP //Click the button event! $("#button").load(function(){ //centering with css centerPopup(); //load popup $loadPopup(); }); Code (markup): Can I get some help please?
.load is an event handler. you should be ok by removing everything within the ready except for the $(document).ready(function() { centerPopup(); $loadPopup(); }); Code (javascript): of course, since i don't know what lies beyond the 2 functions you call, i can't confirm it will work or not.