Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var xgalclick = null;
- var xgal = null;
- xgal = "#UTgallery";
- xgalclick = "#UTgalclick";
- $('#UTgallery').hide();
- $('#CloseGal').hide();
- $('xgalclick').click(function(){
- xgal.setAttribute("id", "gallery");
- $('#gallery a').lightBox();
- $('#gallery').fadeIn("slow");
- $('#CloseGal').fadeIn("slow");
- });
- $('#CloseGal').click(function(){
- $('#gallery').fadeOut("slow");
- $('#CloseGal').fadeOut("slow");
- //reset xgal div tag back to original state
- gallery.setAttribute("id", UTgallery);
- });
- });
Add Comment
Please, Sign In to add comment