[jQuery] Re: Jcarousel Add Link
add links to your item list something like:
{url: "http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg", title:
"Flower1", link:"http://wherever.com/"},
and then update the helper function to something like:
function mycarousel_getItemHTML(item)
{
return '<a href="'+item.link+'"><img src="' + item.url + '"
width="75" height="75" alt="' + item.url + '" /></a>';
};
Jon
2009/10/9 cMantilla <cmantilla69@gmail.com>
>
> I would like to use the carousel at
> http://sorgalla.com/projects/jcarousel/examples/dynamic_javascript.html
> My company needs a product slider and it works well with a few changes
> to the CSS.
> I am having trouble however adding links to the images. If someone
> could show me a function or how to declare <a href>'s in this code, it
> would be greatly appreciated.
>
> Mantilla
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home