Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2012
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    fadeIN with if statement

    in this code:
    Code:
    	setInterval(function() 
    			{
    				(++fadeCounter)
    			}, 2000);
    			
    		
    		setInterval(function()
    			{
    				(--fadeCounter)
    			},2000);
    			
    		if (fadeCounter = (1)) {
    				$("Image").fadeIn("slow") ;
    			}
    		
    		if (fadeCounter = (0)){
    				$("#Image").fadeOut("slow") ;
    			}
    will the if statement being true work as the trigger for the fade effects? if not how do i fix it?

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    what u actually want to achive?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •