Results 1 to 6 of 6

Thread: Ultimate Fade-In Slideshow: Background NOT transparent

  1. #1
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Ultimate Fade-In Slideshow: Background NOT transparent

    1) Script Title: Ultimate Fade-In Slideshow

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

    3) Describe problem: I need the background for this script to be transparent. There is a previous thread, but I tried everything on that threat and nothing works. Everything is set to transparent in my code.
    Code:
    #fadeshow1 .gallerylayer {background-color:transparent!important;}
    }
    #homepagepicture .gallerylayer {
            background-color:transparent!important;
    }
    Code:
     <div id="fadeshow1" style="background-color:transparent; float: center; position: relative; z-index: 100;"></div>
    </div>
    I even changed opacity to 0 in the .js file.

    The page I am working on is here: http://theworldofsteam.com/workingon/slideshow.html
    I want it to be transparent (The files are all .png and transparent) so I can see the paper background.

    Thanks so much! fadeslideshow.js
    Last edited by jscheuer1; 09-21-2012 at 05:17 AM. Reason: fix link

  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

    Revert to the official version of the script from the demo page. Keep the other slideshow specific styles in the stylesheet and add this to the end of the stylesheet:

    Code:
    #fadeshow1 {
    	background: transparent !important;
    }
    The browser cache may need to be cleared and/or the page refreshed to see changes.

    But you would actually be better off if you revert to the official version of the script, get rid of this junk or move it to after the DOCTYPE tag (where it currently is, it will mess up IE):

    Code:
    <!--Generated by the CoffeeCup Web Editor - www.coffeecup.com
    			
    			
    Description...
    			
    		
    @created:           20/09/2012 - 18:20:00
    @today:             20/09/2012
    @project:           No Project
    @path:              /Users/VickiGoutzoulis/Desktop/maglass slideshow/slideshow.html
    			
    @author:            Your name
    @company:           Your company
    @Copyright:         A copyright notice
    			
    @version:           $Revision:$
    -->
    And add this highlighted code after the slideshow init as shown:

    Code:
    	<script type="text/javascript">
    
    var mygallery=new fadeSlideShow({
    	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    	dimensions: [512, 513], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    		["fire.png", "", "", ""],
    		["helmet.png", "", "", ""],
    		["eye.png"],
    		["gail.png", "", "", ""] //<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},
    	persist: false, //remember last viewed slide and recall within same session?
    	fadeduration: 00, //transition duration (milliseconds)
    	descreveal: "ondemand",
    	togglerid: ""
    })
    
    jQuery(function($){ // customized for theworldofsteam.com
    
    	var wrapperid = 'fadeshow1', // set wrapper id the same as the slideshow
    	backcolor = 'black', // set background color
    	container = $(document), // slideshow's background parent
    	bgwidth = 700, bgheight = 927, // set variables for background image's dimensions
    	bgimsrc = 'contentbg.png'; // set container's background image
    
    	//////////////////// No Need to Edit Below ////////////////////
    
    	var $show = $('#' + wrapperid), off, cmid, ch, newstyle, thestyle, // get slideshow wrapper div, reserve some variables
    	topcoord = -$show.parent().offset().top; // since it won't change, set it now
    
    	$show.bind('repositionEvent', function(){ // function to write and install overriding styles for slideshow background
    		off = $show.position(); cmid = container.width() / 2;
    		newstyle = '<style title="' + wrapperid + 'posbg" type="text/css">#' + wrapperid + ', #' + wrapperid + ' .gallerylayer {' +
    		'background: ' + backcolor + ' url(' + bgimsrc + ') ' + (cmid - off.left - bgwidth / 2) + 'px ' + topcoord + 'px no-repeat !important;}<\/style>';
    		if((thestyle = $('style[title=' + wrapperid + 'posbg]')).size()){
    			thestyle.replaceWith(newstyle);
    		} else {
    			$('head').append(newstyle);
    		}
    	});
    
    		$show.trigger('repositionEvent'); // set the show's background
    		$(window).resize(function(){$show.trigger('repositionEvent');}); // do it again should the window be resized
    
    });
    </script>
    Oh, and change this:

    Code:
        <!--[if IE]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    to:

    Code:
        <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    Or get rid of it entirely, I don't think you're using it.
    Last edited by jscheuer1; 09-21-2012 at 06:40 AM. Reason: show better alternative
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in Slideshow- Fading problems and how to create an overlay div?

    1) Script Title: Ultimate Fade-In Slideshow

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

    3) Describe problem: I don't know what I did, but I need help getting the show to fade slower, so the magnifying glass remains solid. It was working before, but then I tinkered with the background transparency and it's not working.

    If it's easier, can someone help me figure out a way to create an overlay div for the slideshow? I couldn't get it to line up with the CSS.
    I have the images, but what I currently have is http://theworldofsteam.com/workingon/slideshow.html
    If I could have the images fade (the script) and then have an overlay image of my magnifying glass, that would be great, but how would I create that nesting div?

    I just need the easiest way to have the magnifying glass overlay the fading slideshow, so I'm all for your ideas!
    Thanks so much!Click image for larger version. 

Name:	maglass.jpg 
Views:	6618 
Size:	6.9 KB 
ID:	4747
    I have attached the magnifying glass png that I would use as the overlay for the slideshow.

  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

    How about if you could do it like so:

    http://home.comcast.net/~jscheuer1/s...paren-bg-h.htm


    The background image below added to achieve preloading:

    - John
    ________________________

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

  5. #5
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Do I have to download jquery?

    Do I have to download anything from jquery and upload it to my site, or do I just need the .js file for the slideshow?

    Thanks so much for all your help!!!
    Last edited by jscheuer1; 09-22-2012 at 05:02 AM. Reason: remove unnecessary quote

  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

    No, all you need is the link to it on the Google servers.

    If you have any other questions, feel free to ask
    Last edited by jscheuer1; 09-22-2012 at 06:35 AM. Reason: add line
    - John
    ________________________

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

Similar Threads

  1. Ultimate Fade-in slideshow - transparent fade-in?
    By netlooks in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-08-2012, 06:24 PM
  2. Ultimate Fade-in slideshow - transparent fade-in?
    By hnwaxman in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-07-2012, 10:35 PM
  3. Replies: 1
    Last Post: 12-11-2010, 06:41 AM
  4. Ultimate Fade-in slideshow (v2.1)-cant get bkgrd to be transparent
    By rkk in forum Dynamic Drive scripts help
    Replies: 8
    Last Post: 01-05-2010, 11:25 AM
  5. Ultimate Fade-in slideshow with transparent gif images
    By eye_design in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 09-14-2009, 08:19 PM

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
  •