Difference between revisions of "Template:SJTU-Software/requirementJs"
Ricky chen (Talk | contribs) (Created page with "$(document).ready(function(){ $('area').click(open); $('.am-close').click(close) }); var open = function(){ var id = $(this).attr("href"); $(id).css("display","block");...") |
Ricky chen (Talk | contribs) |
||
Line 2: | Line 2: | ||
$('area').click(open); | $('area').click(open); | ||
$('.am-close').click(close) | $('.am-close').click(close) | ||
+ | $('#bronze1').click(function(){ | ||
+ | $('#bronze1-4').css("display","block"); | ||
+ | }); | ||
+ | $('#bronze1-4').click(function(){ | ||
+ | $(this).css("display","none") | ||
+ | }); | ||
}); | }); | ||
Revision as of 16:27, 18 September 2015
$(document).ready(function(){ $('area').click(open); $('.am-close').click(close) $('#bronze1').click(function(){ $('#bronze1-4').css("display","block"); }); $('#bronze1-4').click(function(){ $(this).css("display","none") }); });
var open = function(){ var id = $(this).attr("href"); $(id).css("display","block"); } var close = function(){ $(this).parent().css("display","none"); }