CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   fadeIN with if statement (http://www.codingforums.com/showthread.php?t=284270)

flight567 12-17-2012 04:23 AM

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?

vikram1vicky 12-17-2012 10:29 AM

what u actually want to achive?


All times are GMT +1. The time now is 12:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.