[ create a new paste ] login | about

Link: http://codepad.org/EEhmEpC8    [ raw code | fork ]

PHP, pasted on Jan 5:
$(document).ready(function(){

  	$( '.category' ).click( function() {
  		$( this ).toggleClass( 'active' )
  		$( this ).siblings( '.dropdown' ).toggle();
  		$( this ).find( '.indicator' ).toggleClass( 'indicator-active' );
  		return false;
  	} );

		$('#dock ul > li').hover(function(){
				$( '.latest' ).hide();
				$( this ).addClass( 'dock-active' );
				$( this ).stop().children( 'span' ).fadeIn( 200 );
				}, 
			function(){
					$( this ).removeClass( 'dock-active' );
					$( this ).stop().children( 'span' ).fadeOut( 200 );
					}
		);
				
		$( '#dock .item-list' ).bind( "mouseleave", function() {
				$( '.latest' ).fadeIn( 1000 );}
	  );

    $('#dock .item-list a').hover(function() {
        $( this ).animate({ top: -6 }, 'fast');},
        	function() {
        		$( this ).animate({ top: 0 }, 'fast');}
    );


});


Create a new paste based on this one


Comments: