I hope I am able to still receive assistance even though this isn't
jQuery 100% and what I have is an image gallery I am using. The only
thing I need to work out is how to make sure the initial title and
captions appear when you load the webpage?

<script type='text/javascript'>
var imgs0Slideshow = new Array();
var imgs0;
imgs0Slideshow[0] = new Object();
imgs0Slideshow[0].image = "";
imgs0Slideshow[0].title = "";
imgs0Slideshow[0].caption = " shshshshshsh";
imgs0Slideshow[1] = new Object();
imgs0Slideshow[1].image = "";
imgs0Slideshow[1].title = "Array";
imgs0Slideshow[1].caption = " shshshshs";
imgs0Slideshow[2] = new Object();
imgs0Slideshow[2].image = "";
imgs0Slideshow[2].title = "";
imgs0Slideshow[2].caption = " shshshsh";
var start = 0;
imgs0 = new MudFadeGallery('imgs0', 'imgDisplay0', imgs0Slideshow,
{startNum: start, preload: true, autoplay: 4});

var title = (imgs0Slideshow[0].title) ? imgs0Slideshow[0].title : "No
Title";
        var caption = (imgs0Slideshow[0].caption) ? imgs0Slideshow
[0].caption : "No caption";
        $("imgDisplay0_title").innerHTML = title;
        $("imgDisplay0_caption").innerHTML = caption;
        $("imgDisplay0_number").innerHTML = "1 of " + imgs0Slideshow.length +
" Articles";
        $("imgDisplay0").src = imgs0Slideshow[start].image;

</script>

The entire Gallery works correctly but I am not sure if the last part
of the script is structured correctly. When it is first loaded, the
first image does appear but without it's title and captions and I want
to show it.

Reply via email to