Results 1 to 6 of 6

Thread: Ultimate Fade-in slideshow (v2.4) - Black Images

  1. #1
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in slideshow (v2.4) - Black Images

    1) Script Title: Ultimate Fade-in slideshow (v2.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: Images appear black (tried jpg and png). If you right click on the black and click view image you can see the image.

    http://www.fredscustomtackle.com

    Help much appreciated,

    Todd

  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

    Get rid of this:

    Code:
     <script type="text/javascript" src="assets/templates/custom1/scripts/lightbox/prototype.js"></script>
                <script type="text/javascript" src="assets/templates/custom1/scripts/lightbox/scriptaculous.js"></script>
               <script type="text/javascript" src="assets/templates/custom1/scripts/lightbox/lightbox.js"></script>
          <link rel="stylesheet" href="assets/templates/custom1/css/lightbox.css" type="text/css" media="screen" />
    The page isn't using it anyway, right?
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The whole site is driven by 3DCart which uses a generic template page for building each page. Although certain scripts etc. may not be used on the home page they may be used elsewhere.

    I'll comment them out and see if they are interfering in some way. Will get back you to you later.

  4. #4
    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

    If you need a lightbox effect, there are ways that won't conflict with the slideshow. The best would be to use a jQuery based lightbox like Slimbox 2.04. See:

    http://www.dynamicdrive.com/forums/blog.php?b=247

    Also, if you need prototype/scriptaculous for other things - That too can probably be worked out. I say probably because you would probably need to update the versions.
    - John
    ________________________

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

  5. #5
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That seemed to fix that problem.

    New problem... Anyway of disabling the <DIV> error for pages that don't need the banner? These pages are generated from templates and only the home page needs the banner.

  6. #6
    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

    Using a text only editor like NotePad, around line 50 of the fadeslideshow.js file find this code and add the comment token (red) as shown:

    Code:
    		if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
    			//alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
    			return
    		}
    Use that version of the file.

    The browser cache may need to be cleared and/or the page refreshed to see changes.
    - 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
  •