View Single Post
Old 12-17-2012, 04:23 AM   PM User | #1
flight567
New Coder

 
Join Date: Mar 2012
Posts: 23
Thanks: 2
Thanked 0 Times in 0 Posts
flight567 is an unknown quantity at this point
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?
flight567 is offline   Reply With Quote