Jquery timeout on each
Posted
by pingu
on Stack Overflow
See other posts from Stack Overflow
or by pingu
Published on 2010-03-16T15:29:51Z
Indexed on
2010/03/16
15:31 UTC
Read the original article
Hit count: 293
Hi guys,
I'm trying to write a jQuery function to change out href of a link, but I'm not quite sure how to do it. I've implemented a slider, but I have a link which lives outside of the slider (outsideLink) which needs to change as the slider changes.
I'm trying to achieve the following:
for each link in sliderList
get currentLink.href
outsideLink.href = currentLink.href
wait 3 seconds
repeat
end
I'm not sure how to implement the delay when I'm going through a list of items though.
© Stack Overflow or respective owner