/    Sign up×
Community /Pin to ProfileBookmark

jcarousel counter like 1 of 10

hello all,
i want in jcarousel to show a kind of counter to show the slide like the title above:
i found this script in internet but doesnt work,
can anyone help me????

[code=php]
function display(s) {
$(‘#display’).html(s);

};

function mycarousel_itemFirstInCallback(carousel, item, idx, state) {
display( idx +”<i> of </i>”+ mycarousel_itemList.length);

};

jQuery(document).ready(function() {
jQuery(‘#mycarousel’).jcarousel({
size: mycarousel_itemList.length,
wrap: ‘last’,
itemFirstInCallback:mycarousel_itemFirstInCallback,
itemLoadCallback: {onBeforeAnimation:
mycarousel_itemLoadCallback}
});

});
[/code]

this code i pasted in the html part and i created of course the div with “display” id in the html part.

please helpppp

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @dpsim spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...