Skip to content

Instantly share code, notes, and snippets.

@bkilshaw
Created February 8, 2011 08:17
Show Gist options
  • Save bkilshaw/816083 to your computer and use it in GitHub Desktop.
Save bkilshaw/816083 to your computer and use it in GitHub Desktop.
$("#brandmenu div").click(function(){
var newBackground = $(this).attr("background");
var backgroundString = "transparenet url (img/" + newBackground + ") top left no-repeat";
$("body").css("background", backgroundString);
if(newBackground == "intel_2a_1.png") {
$("#breakoutSession").show();
} else {
$("#breakoutSession").hide();
}
});
$("#breakoutSessionMenu div").click(function() {
var newBackground = $(this).attr("background");
var backgroundString = "transparenet url (img/" + newBackground + ") top left no-repeat";
$("body").css("background", backgroundString);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment