PDA

View Full Version : Left-Right Image Slideshow Script Help Please



allielopez
03-05-2007, 02:19 PM
1) Script Title: Left-Right Image Slideshow Script

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

3) Describe problem:

Hello,

I just installed this script on my website:

http://www.yobestudios.com/

It's working but it seems that it made my other script stop working. It was one to have Curvy Corners around my main box. Does anyone know how I could fix this?

Thank you,

Allie

jscheuer1
03-05-2007, 04:07 PM
That's an onload conflict. Get rid of this:


<script type="text/JavaScript">

window.onload = function()
{
/*
The new 'validTags' setting is optional and allows
you to specify other HTML elements that curvyCorners
can attempt to round.

The value is comma separated list of html elements
in lowercase.

validTags: ["div", "form"]

The above example would enable curvyCorners on FORM elements.
*/
settings = {
tl: { radius: 20 },
tr: { radius: 20 },
bl: { radius: 20 },
br: { radius: 20 },
antiAlias: true,
autoPad: true,
validTags: ["div"]
}

/*
Usage:

newCornersObj = new curvyCorners(settingsObj, classNameStr);
newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
*/
var myBoxObject = new curvyCorners(settings, "myBox");
myBoxObject.applyCornersToAll();
}

</script>


Find this in the slide show script (near its end):


window.onload=startscroll

Replace it with this:


window.onload = function()
{
/*
The new 'validTags' setting is optional and allows
you to specify other HTML elements that curvyCorners
can attempt to round.

The value is comma separated list of html elements
in lowercase.

validTags: ["div", "form"]

The above example would enable curvyCorners on FORM elements.
*/
settings = {
tl: { radius: 20 },
tr: { radius: 20 },
bl: { radius: 20 },
br: { radius: 20 },
antiAlias: true,
autoPad: true,
validTags: ["div"]
}

/*
Usage:

newCornersObj = new curvyCorners(settingsObj, classNameStr);
newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
*/
var myBoxObject = new curvyCorners(settings, "myBox");
myBoxObject.applyCornersToAll();startscroll();
}

That will fix the onload conflict. There could be other problems.