View Full Version : (probably easy)Ultimate Fade-In Slide Show conflicting with another JS file

12-07-2010, 12:46 AM
1) Script Title: Ultimate Fade-In Slideshow (2.4)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: I'm pretty(extremely) new to Jquery and such in general, I'm only semi-accomplished at kludging stuff together.

I'm working out of www.budsarcheryshop.com/dev3/ presently.

When I disable (by commenting out) the loading of my js/js.js file (which is currently handling all of my $(document).ready(function() {}); stuffs the Fade-In Slideshow works like a champ(but obviously the rest of my site goes poo). If I have them both enabled the site BREAKS. Firebug kicks off all kinds of errors and dogs and cats, living together(yeah, it happens). Also, if I disable fadeinslideshow.js, everything else works on the site, but obviously not the slide show.

I think it has to do with the the Jquery.noConflict (from fadeinslideshow.js) vs the $(document).ready(function) stuff(of js.js); but I have no idea how to have the two living in peace and harmony.. I have the slideshow disabled presently, but you can see it working under www.budsarcheryshop.com/dev2/

Any help?

(also, if anyone has any experience getting Jquery.ui's datepicker to trigger on a dynamic dom object's being loaded, you'd be pro >.>)

12-07-2010, 05:21 AM
Just comment out the line:

/* Ultimate Fade-in slideshow (v2.4)
* Last updated: May 24th, 2010. This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code

//Oct 6th, 09' (v2.1): Adds option to randomize display order of images, via new option displaymode.randomize
//May 24th, 10' (v2.4): Adds new "peakaboo" option to "descreveal" setting. oninit and onslide event handlers added.

var fadeSlideShow_descpanel={
controls: [['x.png',7,7], ['restore.png',10,11], ['loading.gif',54,55]], //full URL and dimensions of close, restore, and loading images
fontStyle: 'normal 11px Verdana', //font style for text descriptions
slidespeed: 200 //speed of description panel animation (in millisec)

//No need to edit beyond here...

// jQuery.noConflict()

function fadeSlideShow(settingarg){
var setting=this.setting
setting.fadeduration . . .

12-07-2010, 05:44 AM
Yeah, worked like a champ, figured it was the culprit, but didn't wanna go getting all crazy and not knowing what I was doing..