Results 1 to 2 of 2

Thread: Left-Right Image Slideshow Script Help Please

  1. #1
    Join Date
    Aug 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Left-Right Image Slideshow Script Help Please

    1) Script Title: Left-Right Image Slideshow Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ightslide2.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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's an onload conflict. Get rid of this:

    Code:
    <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):

    Code:
    window.onload=startscroll
    Replace it with this:

    Code:
      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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •