Why I don’t like jQuery: it’s a black box that just magically Does Stuff, unless you’re already a Javascript expert, which the majority of users aren’t (because it’s targetted to those who don’t know Javascript, by doing everything for you… vicious circle).
I don’t believe you can add custom urls without significant rewriting of the Javascript, though this is just my uninformed opinion based on this code:
$(function() {
$('#slideshow').cycle({
timeout: 3000,
pager: '#nav',
pagerAnchorBuilder: function(idx, slide) {
[b] return '<li><a href="#"><img src="' + slide.src + '" width="50" height="50" /></a></li>';[/b]
}
});
});
An anchor is generated by the javascript itself, and because it’s building a list, it makes each one the same, with href=“#”. To make each href different and specific per iteration would mean somewhere a new loop would need to be written, and then it would have to grab the urls from somewhere. Where? Likely you’d have to make lists of urls. This is completely unhandy.
Although, there is that slide.src which is grabbing the image sources, so maybe wherever that’s sitting, could have urls and that added to this line:
return ‘<li><a href=“’ + urlz + '”><img src="’ + slide.src + ‘" width=“50” height=“50” /></a></li>’;
Still, knowledge of how all this stuff works is still required to even get that doing something useful… if it’s that easy, then it may well be worth it to have a jQuery expert come in here and figure out how this could be configured.
What might just be easier (easier than rewriting a jQuery plugin family) is to find some other scrolly slidey link generating whatsit. Ideally, one where the small thumbs are already on the page and already clickable, with Javascript simply making the large image change regularly. Hm, even maybe using the idea of CSS rollovers with Javascript merely shuffling the image in the large copy and doing nothing else. I don’t see a good reason why javascript is building that list of thumbnails at all. Why do they explicitly want to hide that from those without JS, when the JS is only making the thumbs cycle through the large image??? Like anyone without JS is going to care that the large image doesn’t change! But they’ll have pretty little thumbnail links like everyone else.
General rule: only build things in the DOM with JS when those things themselves only work or make sense with JS enabled. That means, everything else should be in the HTML.