Re: [jQuery] Re: rotate/loop using jquery

2009-12-15 Thread Dhruva Sagar
No problem, happens with all of us :) Thanks & Regards, Dhruva Sagar. On Tue, Dec 15, 2009 at 9:39 PM, Glen_H wrote: > yeah, you are right, it appears as though i may have over thought it. > thanks for the response! > > It worked perfectly btw. > > thanks again. > > Glen > > On Dec 15, 11:05

[jQuery] Re: rotate/loop using jquery

2009-12-15 Thread Glen_H
yeah, you are right, it appears as though i may have over thought it. thanks for the response! It worked perfectly btw. thanks again. Glen On Dec 15, 11:05 am, Dhruva Sagar wrote: > There could be many ways to do that. If only you put in a little thought to > it :). > > This is one of the ways

[jQuery] Re: rotate/loop using jquery

2009-12-15 Thread T.J. Simmons
Try something like.. $("#btnTraffic").click(function(){ if ($("#trafficLight").css("background-color") == 'green') { $("#trafficLight").css("background-color", "yellow"); } else if ($("#trafficLight").css("background-color") == 'yellow') { $("#trafficLight").css("back