/    Sign up×
Community /Pin to ProfileBookmark

Multiple Script Question

Hi there-

I am attempting to include several files on this page:

[url]http://www.firehousestudios.net/kpools[/url]

They are all included in the <head> and are called via links or css divs. The problem I’m encountering- the accordion script runs correctly as is, however the link to the gallery at the top of the page will not load the ‘lightbox’ type function that is also included in the page.

If I remove the scripts to run the accordion script the lightbox works correctly, however I cannot get them both to work in unison on the page.

If anyone can shed any light on the subject I would appreciate it.

fh

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisDec 23.2008 — There is no separate memory space for a particular script, so if you combine scripts in a page, they must be compatible. In other words, all variable and object names become common, so if the combination results in duplicate names, parts of the combined script will break.
×

Success!

Help @Firehouse 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.2,
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,
)...