Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter el-barto

    (@el-barto)

    Forgot to say it’s the jquery.cycle.all.js file the changes in my last post were made in.

    Thread Starter el-barto

    (@el-barto)

    ‘Ello,

    Thanks for the replies, very good plugin and glad to see you actually helping people out with problems.

    I worked out a method of getting the title tags value to be displayed, I wrote a small bit of jQuery to get the current slide number, find the image inside it, get the title tags value and then append it to the same div the image paged box things are in.

    If anyone’s interested I’ve posted what I did below:

    if (changed && opts.pager)
    	{
    		opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass);
    
    //N Nand - Changes to display image alt tag as an title in the slideshow
    		nnCurSlide = opts.currSlide + 1
    		nnImageTitle = $j('div#slide-'+nnCurSlide+' img').attr("alt");
    
    		$j('div.meteor-buttons span').remove();
    		$j('div.meteor-buttons').append('<span>'+nnImageTitle+'</span>');
    	}

    The above code replaces (on line 639 I think):

    if (changed && opts.pager)
    	{
    		opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass);

    Also after the code below goes at the bottom of the “function buildPager” function.

    //N Nand - Changes to display image alt tag as an title in the slideshow
    	nnCurSlide = opts.currSlide + 1
    	nnImageTitle = $j('div#slide-'+nnCurSlide+' img').attr("title");
    
    	$j('div.meteor-buttons').append('<span>'+nnImageTitle+'</span>');

    Hope this helps someone else and thanks for the replies JLeuze.

    Thread Starter el-barto

    (@el-barto)

    ‘Ello,

    If I understand that post correctly as I’ve tried it out does that method put the title of the post in the slideshow? What I am hoping to get done is display the title of the image it self in the slideshow, is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)