Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to make a json data file?how to get the carousel working #7

Open
stblaisechurch opened this issue Sep 29, 2011 · 3 comments
Open

Comments

@stblaisechurch
Copy link

please help me.im new to this i need this badly on my website, but i have no idea how to install it. i have downloaded
the
agile_carousel.alpha.js
agile_carousel.css
agile_carousel_data.php

i dont know wat to do next plz help

@edtalmadge
Copy link
Owner

Please see the example code on this page: http://agilecarousel.com/basic_example.htm
You could use code similar to the example code shown there.
Does that help?

Regarding the JSON file, please see the "Data" section of http://agilecarousel.com/

@blabno
Copy link

blabno commented Dec 16, 2011

It's a pity that this great plugin cannot work with content on page (by default) but it requires some strange JSONified HTML. Here is a workaround for this:
jQuery(function() { var data = []; jQuery(".carouselItem").each(function() { data.push({content:jQuery(this).html()}); }); $(".content").agile_carousel({ carousel_data: data, carousel_outer_height: 300, carousel_height: 300, slide_height: 230, carousel_outer_width: 938, slide_width: 938, transition_time: 300, timer: 4000, continuous_scrolling: true, control_set_1: "numbered_buttons", no_control_set: "hover_previous_button,hover_next_button" }); });

<div id="flavor_1" class="content">
<div class="carouselItem">
<img src="img/theGreatImage.png"/>
</div>
</div>

@fbruges
Copy link

fbruges commented Feb 20, 2013

blabno, you have saved me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants