1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help!! I need help with my java script! pleasee!

Discussion in 'HTML & JavaScript' started by onenumerology, May 30, 2011.

  1. onenumerology

    onenumerology Registered Member

    Joined:
    Jul 16, 2010
    Messages:
    76
    Likes Received:
    13
    Right now the script works by showing a button when i hover over it. How do i instead make it show the button permanently?

    Code:
    	jQuery('.next-block a').live('click',function(event){
    		event.preventDefault();
    		if (!et_animation_running) rotate_slide('next');
    		if ( typeof(et_auto_animation) !== 'undefined' ) clearInterval(et_auto_animation);
    	});
    	
    	jQuery('.prev-block a').live('click',function(event){
    		event.preventDefault();
    		if (!et_animation_running) rotate_slide('prev');
    		if ( typeof(et_auto_animation) !== 'undefined' ) clearInterval(et_auto_animation);
    	});
    				
    	$featured_slides.hover(function(){
    		if ( !et_animation_running ) {
    			if ( jQuery(this).hasClass('active-block') )
    				jQuery(this).find('.featured-link').stop(true, true).animate({'opacity':'show'},300);
    			else {
    				jQuery(this).find('.gotoslide').stop(true, true).animate({'opacity':'show'},300);
    			}
    		}
    		pause_scroll = true;
    	},function(){
    		if ( !et_animation_running ) {
    			if ( jQuery(this).hasClass('active-block') )
    				jQuery(this).find('.featured-link').stop(true, true).animate({'opacity':'hide'},300);
    			else {
    				jQuery(this).find('.gotoslide').stop(true, true).animate({'opacity':'hide'},300);
    			}
    		}
    		pause_scroll = false;
    	});
     
  2. HatIsBlack

    HatIsBlack Regular Member

    Joined:
    Sep 17, 2010
    Messages:
    265
    Likes Received:
    187
    Location:
    Where i belong
    if would test to change
    $featured_slides.hover(function(){

    to:
    $featured_slides.mouseover(function(){