hello i would like to customize a carrousel with thickbox by adding a
description to each image but i m a bit lost, i would be VERY grateful
to anyone helping me....
jQuery is 1.2.6


here is part of my code

var mycarousel1_itemList = [
{url: "./images/deunan_evening_dress_s.jpg", title: "fff",
description: "vvvv"},{url: "./images/lien_s.jpg", title: "titre de la
sculpture", description: "qqqqqqqqq"},{url: "./images/briareos
+dunan4_s.jpg", title: "autre titre", description: "qqqqqqqqq"},{url:
"", title: "testitre", description: "description"},{url: "./images/
hinatahyuuga0_s.jpg", title: "testitre autre", description: "desc"},
{url: "./images/briareos+dunan4_s.jpg", title: "test titre autre
autre", description: "desc"}
];



function mycarousel1_itemLoadCallback(carousel, state)
{
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) {
            continue;
        }

        if (i > mycarousel1_itemList.length) {
            break;
        }

        // Create an object from HTML
        var item = jQuery(mycarousel1_getItemHTML(mycarousel1_itemList
[i-1])).get(0);
        // Apply thickbox
        tb_init(item);
        carousel.add(i, item);
    }
};

firebug| tab DOM tells me this:


[Object url=./images/deunan_evening_dress_s.jpg title=fff, Object
url=./images/lien_s.jpg, Object url=./images/briareos+dunan4_s.jpg, 3
more... 0=Object 1=Object 2=Object 3=Object 4=Object 5=Object]

it seems strange,is it ok?

is the parsing ok because nothing happens anymore, no picture is shown
(i have also been messing inside thickbox script)
http://www.jeremieparmentier.com/test/jquery/testjquery.html

but if if insert a description inside the thickbox.js it works but as
i want a different description for each picture it's no good :-{

if you want to have a look you can go here
http://www.jeremieparmentier.com/test/jquery/testjquery2.html
thanks for your help!

Reply via email to