Add interface to choose trigger
JBrauer - April 27, 2008 - 19:54
| Project: | Nodecarousel |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (code needs review) |
Description
It would be nice to add an interface to allow the user to choose to use whatever event they want to advance the carousel. At least choosing between click() and mouseover() would be handy.

#1
That's an interesting idea. I'll admit the prev and next divs that nodecarousel provides are provided by the jcarousel by default, but it's possible that we could come up with something else.
One possibility is for me to generate new divs when mouseover is wanted. Another possibility is to publish/make obvious the javascript methods that advance or backup the nodecarousel - thusly folks could hook them up to whatever events they want with jQuery.
It's quite possible that I may do both, in time. If anyone wants to make my life easier and work up a patch, I won't stand in their way, though. :)
#2
I'll likely be working on a patch in the near future (but that shouldn't dissuade anyone else). My immediate goal is for front-page mouse over tabs... Something like the prototype (broken in IE thanks to the busted css support sorry) at http://w.cali.org
And as is seen in the prototype I'm thinking more of the index vs the next-previous links.
#3
Here's a shot at a patch....