Wednesday, 15 January 2014

javascript - Jquery delay between two fade toggle effects -



javascript - Jquery delay between two fade toggle effects -

i showing , displaying 2 divs using jquery

the code

var show_hide = function () { $("#extravagents_label").fadetoggle(function () { $("#liquid.liquidcontanier").fadetoggle().delay(1500); }); } setinterval(show_hide, 1500);

but there problem. not doing job properly. should display other div when 1 hidden. kindly visit 203.81.193.2/jsvt/. there icons , text under main slider displaying , hiding.

you should careful timings , setinterval can mess things pretty bad.

if timings problem:

var show_hide = function () { $("#extravagents_label").fadetoggle(callblack); } var callblack = function () { $("#liquid.liquidcontanier").fadetoggle() .delay(1500).queue(show_hide); }

hope helps, still not sure you're after

javascript jquery html toggle

No comments:

Post a Comment