/    Sign up×
Community /Pin to ProfileBookmark

Implementing scripts and having conflicts

I have three basic scripts going on on my page. One is a basic slideshow feature for my photos that has next and previous and replaces the current picture. The second script is a mouseover zoom feature with a zoomed view of the current picture. Last I am trying to implement an “animated jpg” feature so that one of my slides can be animated. Right now I am just trying to add the functions for the animation, and its causing my next and previous slideshow script to not do anything.

I have the page im working on at:

[url]http://www.larials.com/4_26_10/index3.php[/url]

If you go to

[url]http://www.larials.com/4_26_10/index.php[/url] you will see the first two scripts working fine.

Adding this little block of code for the third scripts function (not even implementing the script into the HTML) is causing my second script (the slideshow next and previous) to not work.

Any insight is appreciated.

I hope I dont offend anyone with this first post!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@NicTltMay 02.2010 — There appears to be an extra curly brace } at the end of imgturn() in your HEAD.

Also none of your IMG tags are closed properly.

Also your routines almost entirely rely on global variables. You have quite a bit of work to do there!

BTW you don't need the language or type attributes in your script tag and you don't need to encase the script in comments and CDATA - unless you expect to have to support Netscape Navigator 3.
Copy linkTweet thisAlerts:
@pbmaxbauthorMay 02.2010 — Thanks for the reply! I took out the extra } and that got my page loading. I also removed the script language tags. I removed the CDATA. I'm not sure how to clean up the global variable issue you are mentioning.

I now have a basic problem. My two scripts are working great, the zoom still works fine, and the slideshow is working. Now the 12th slide should be "animated jpg", but its not. Is it even possible with my image changing through the slideshow to have the last one animated?

http://www.larials.com/4_26_10/index2.php

Thanks again!
×

Success!

Help @pbmaxb 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.27,
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,
)...