Closed (fixed)
Project:
jCarousel
Version:
5.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2007 at 02:12 UTC
Updated:
15 Jun 2012 at 16:44 UTC
Dear Developer,
I have follwed the documentations to install the jCarousel. I need help on
"1) Add the required JS/CSS files by calling this function:
jcarousel_add();"
Can you provide a simple example for me to follow? I went to the http://sorgalla.com/jcarousel/ website and looked at the examples but there is no mention of jcarousel_add();.
Please help. Thanks!
Comments
Comment #1
wim leersAll this module does, is adding the required .js file. That's what the jcarousel_add() function is for.
After you've done that, you must still write the required jQuery/JavaScript to make use of the functions the jCarousel plugin gives you. See the Message Effects module for example. This module makes use of the jQuery Interface module, which does something similar as the jCarousel module, but then for the Interface plugin for jQuery.
Comment #2
alippai commentedYou can create a module/page/block with it :)
For example I made a pager for my Acidfreegallery from it ;) http://gimi.brain.sk/node/821
Comment #3
wim leersComment #4
ThanhBT commentedSorry, i'm noob in development.
Plz show me guide simple to use this. Thank a lot.
Comment #5
jcfiala commentedCheck out the original site for jCarousel at http://sorgalla.com/projects/jcarousel/ - there's several examples and a fair amount of documentation there.
Basically what you do is:
1) set up a list
of items you want in the carousel.
2) call the javascript to turn that
into a carousel for display.
Comment #6
wim leersComment #7
hansrossel commentedMaybe to be sure everybody gets it, here a code example:
Make a block and put this as content:
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
mbria commentedThanks a lot.
When you are insure about how much work is taken by the integration, it really helps.
Comment #10
jdl100 commentedHi Hans,
Thanks for your example. I'm using Drupal 5.
I created a block. I added all of the code to the block that you listed and I set the block input type to php. However, the carousel doesn't display. Firebug displays these errors: $("#mycarousel").jcarousel is not a function.
Someone else mentioned that jcarousel_add(); needed to be added to the template.php file instead. I tried that but I still ran into errors with it not understanding jcarousel.
Do you mind explaining exactly where this code belongs?
jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel(); });Thanks,
jdl
Comment #11
fehin commentedsubscribing
Comment #12
eggthing commentedsubscribe