Not sure how to title this but the problem is... I have some jQuery lines that work ok, they are activated first when the page is loaded and then at the click inside a div.
I'm now trying to have the same code running on time intervals but it doesn't work at all nor outputs any error....
Any idea? the website is built on WordPress and the script is running over a picture "slideshow" you can check on http://demo.lavenderwp.com/nowland/
The code I used for time intervals is:
setInterval("myFunc()",100);
function myFunc()
{
$('#slider, .leftNav, .rightNav, .bottomNav').click(function()
{
$(".contentHolderUnit").filter(function(i, el)
{
return el.style.zIndex <= 100;
}).find('img').wrap('<div class="blue" />') .css({opacity: 0.75, border: "0px white solid"});
$(".contentHolderUnit").filter(function(i, el)
{
return el.style.zIndex <= 100;
}).find('div.car').css({display: "none"});
$(".contentHolderUnit").filter(function(i, el)
{
return el.style.zIndex >= 100;
}).find('img').css("background-color","") .css({opacity: 1, border: "15px white solid"});
$(".contentHolderUnit").filter(function(i, el)
{
return el.style.zIndex >= 100;
}).find('div.car').css({display: "block"});
});
}