Template:Team:HokkaidoU Japan/script

From 2011.igem.org

(Difference between revisions)
Line 535: Line 535:
$('.right-menu, .left-menu').bind('mouseover', function(){
$('.right-menu, .left-menu').bind('mouseover', function(){
$(this).fadeTo('slow', 1);
$(this).fadeTo('slow', 1);
 +
});
 +
 +
$(function(){
 +
    var $toc = $('#toc');
 +
    var $tab = $('<div>').addClass('toc-tab');
 +
    var $close = $('<div>').addClass('close');
 +
    $toc.append($close);
 +
    $toc.before($tab);
 +
    $toc.hide();
 +
    $tab.bind('click', function(){
 +
        $tab.hide();
 +
        $toc.fadeIn('normal');
 +
        $close.bind('click', function(){
 +
            $toc.fadeOut('normal');
 +
            $tab.show();
 +
        });
 +
    });
});
});
</script></html>
</script></html>

Revision as of 10:49, 5 October 2011