/    Sign up×
Community /Pin to ProfileBookmark

jquery/facebox question

[url=”http://ibcfrankfort.com”]link[/url]

Problem: I have two sets of images (7, 5). The facebox.js is totaling them and displaying the text “Image 1 of 12” in the window, when it should either be “Image 1 of 7” or “Image 1 of 5.”

I need each <ul> to be a facebox set (the first set, 7 images; the second 5).

What do I need to do to differentiate these, and keep the script from totaling the amount of images on the page (rather than in the <ul>) and displaying that in any of the facebox instances?

Thanks in advance – KDLA

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KDLAauthorJul 27.2009 — bump
Copy linkTweet thisAlerts:
@artemisJul 27.2009 — This is untested but maybe try giving each list separate classnames, e.g. facebox1, facebox2 and then:

$('a[rel*=facebox1]').facebox();

$('a[rel*
=facebox2]').facebox();
Copy linkTweet thisAlerts:
@KDLAauthorJul 28.2009 — Sorry to have taken a while to get back to you -- looks like that works. Thanks!!! ?
×

Success!

Help @KDLA 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 4.29,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...