script type text javascript document ready function add_inf_top_menu c

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<script type="text/javascript">
$( document ).ready(function() {
$('.add_inf_top_menu a').click(function(){
var block_id = $(this).attr('block_id');
$('.add_inf_inf_block').css('display', 'none');
block_id = '#'+block_id;
var disp = $(block_id).css('display');
if(disp == 'block'){
$(block_id).css('display', 'none');
}else{
$(block_id).css('display', 'block');
}
return false;
});
});
</script>