Cufon and MooTools Slideshow

29 views
Skip to first unread message

stuart

unread,
Aug 13, 2009, 6:00:50 PM8/13/09
to cufón
I see a lot of questions addressing Cufon and AJAX but I have a
slightly different problem it seems. I'm using Slideshow 2 (http://
www.electricprism.com/aeron/slideshow/) with MooTools 1.2 and I want
to be able to replace the slideshow captions text with Cufon generated
text. I've tried using cufon.dom.ready and cufon.replace() as well as
cufon.refresh() but I still get the default HTML rendered type, not
the typeface I'm expecting. I have Cufon working on the navigation
and captions for all the pages under Work here, http://www.monderer.com.
I'm trying to get Cufon to refresh the slideshow captions on this
page, http://www.monderer.com/pages/work/identity/identity-cufon.php.
I'm currently trying to get the first logo working so all the captions
look like their image counterparts (or the captions in the other
portfolio pages) in the following logos. Any suggestions would be
much appreciated.

stuart

unread,
Aug 14, 2009, 12:07:08 PM8/14/09
to cufón
update: I was poking around the Slideshow API and gave this a shot:

onStart: function() { Cufon.replace('div.slideshow-captions'); },

It sort of worked. When you clicked the next arrow or the thumbnail
to go to another logo the text was swapped during the fade out but
then reverted to HTML text when the caption fully loaded. I tried
both cufon.refresh, which did nothing, and cufon.replace. I also
tried the slideshow onStart and onComplete calls. I'm not sure if
this is a bug in slideshow, cufon or simply something that won't work
at all.

On Aug 13, 6:00 pm, stuart <stu...@monderer.com> wrote:
> I see a lot of questions addressing Cufon and AJAX but I have a
> slightly different problem it seems. I'm using Slideshow 2 (http://www.electricprism.com/aeron/slideshow/) with MooTools 1.2 and I want
> to be able to replace the slideshow captions text with Cufon generated
> text. I've tried using cufon.dom.ready and cufon.replace() as well as
> cufon.refresh() but I still get the default HTML rendered type, not
> the typeface I'm expecting. I have Cufon working on the navigation
> and captions for all the pages under Work here,http://www.monderer.com.
> I'm trying to get Cufon to refresh the slideshow captions on this
> page,http://www.monderer.com/pages/work/identity/identity-cufon.php.

Simo Kinnunen

unread,
Aug 17, 2009, 11:15:33 AM8/17/09
to cu...@googlegroups.com
Hi Stuart,

Sorry for the late response. Unfortunately it doesn't look like your
slideshow provides a hook that would work in this particular
situation. It is, however, possible via a somewhat ugly hack:

function updateCaption() {
Cufon('div.slideshow-captions', {}, false);
}

identityPfolio.slideshow.retrieve('captions')
.addEvent('update', updateCaption);
.get('morph').addEvent('start', updateCaption);

Sadly there doesn't seem to be a better way.

Simo

stuart

unread,
Aug 18, 2009, 12:40:10 PM8/18/09
to cufón
Hey, ugly hacks make the web work. I'll give this a shot and see what
happens.
Reply all
Reply to author
Forward
0 new messages