RSS

Monthly Archives: July 2011

How do you move the close button to the top right corner in shadowbox 3.0+?

In the development process sometimes our client request us to use shadowbox to view larger image in popup box. Normaly the cross button placed at the bottom right of the box. But when we need to place the cross button at the top right corner then we can do it very easily by the following way.

Shadowbox.init({
onOpen: function() {
$(‘#sb-info’).after($(‘#sb-wrapper-inner’));
$(‘#sb-wrapper-inner’).after($(‘#sb-title’));
},
modal : true
});

Advertisements
 
2 Comments

Posted by on July 30, 2011 in JS Plugins