Skip to content

Instantly share code, notes, and snippets.

@imownbey
Created August 8, 2009 07:40
Show Gist options
  • Save imownbey/164333 to your computer and use it in GitHub Desktop.
Save imownbey/164333 to your computer and use it in GitHub Desktop.
$(function() {
$("a#portfolio_link_1").click(function() {
$("div#portfolio_float_1").fadeIn();
return false;
})
$("a#portfolio_link_2").click(function() {
$("div#portfolio_float_2").fadeIn();
return false;
})
$("a#portfolio_link_3").click(function() {
$("div#portfolio_float_3").fadeIn();
return false;
})
$("a#portfolio_link_4").click(function() {
$("div#portfolio_float_4").fadeIn();
return false;
})
$("a#portfolio_link_5").click(function() {
$("div#portfolio_float_5").fadeIn();
return false;
})
$("a#portfolio_link_6").click(function() {
$("div#portfolio_float_6").fadeIn();
return false;
})
$("a.close").click(function() {
$("div.portfolio_float:visible").fadeOut();
return false;
})
$('body').click(function() {
$("div.portfolio_float:visible").fadeOut();
});
$('div.portfolio_float').click(function(event){
event.stopPropagation();
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment