/    Sign up×
Community /Pin to ProfileBookmark

two scripts not working together

I have tried to get two of the same script to work on the same page, but to no avail.

The scripts both display images, one after the other, for example, the first image would display for sale and the second image would display only before this date.

Now i have two boxes on my html page which would both supposed to do the above actions, but only one of the boxes does it!

I have followed the solution from the site where i got the scripts from, but only one works.

As you can see only the top box works and the bottom is idle.

Only one script you will see in the code because if i include both, problems arise and i need the page to be live and at least working as it stands.

I have included the link to the site below.

[URL=http://www.yorkshirelimos.com]Click Here[/URL]

I hope someone can help me.

Thank you

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@steelersfan88Jan 29.2004 — I looked at the site and I noticed the following from the code:

[CODE]//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"][/CODE] Why is this line commented out?

Also, just to make sure, you must rename the function and all variables differently so you can access them differently.

If the array is renamed and the functions are also, I think the code will work. What is the problem that you are getting by the way?
×

Success!

Help @bash 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 6.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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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