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?