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.
Bookmarks