Hey thanks man, however I have no idea what you just said....I am not the
best JS guy as you can tell.
construct a list of links: I think I have already done that
then the example next you have: eval(linklist[2]);
what is this for?
thanks a ton!
----- Original Message -----
From: "Sean Catchpole" <[EMAIL PROTECTED]>
To: <jquery-en@googlegroups.com>
Sent: Wednesday, May 16, 2007 2:26 PM
Subject: [jQuery] Re: Next/Previous Links
I would construct a list of links, and then keep a "current" pointer
to which one is being displayed.
var linklist = new Array();
$("#vidLinks, #vidLinks2, #vidLinks3, #vidLinks4").find("li
a").each(function(){
linklist[linklist.length] = this.onclick;
});
//example next:
eval(linklist[2]);
~Sean