Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Old 12-17-2012, 10:29 AM   PM User | #2
vikram1vicky
Regular Coder

 
Join Date: Jul 2011
Location: India
Posts: 496
Thanks: 3
Thanked 57 Times in 56 Posts
vikram1vicky is an unknown quantity at this point
what u actually want to achive?
vikram1vicky is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:21 AM.


Advertisement
Log in to turn off these ads.