Hi,
I have exactly the same problem. I use the fader on a div tag which is placed over a background and my pictures have a transparent frame. I tried to apply the code suggested in the post but it doesn't work.
This is the html code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="Style/home.css">
<script type="text/javascript" src="Lib/Fader/jquery.min.js"></script>
<script type="text/javascript" src="Lib/Fader/fadeslideshow.js">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
var mygallery = new fadeSlideShow({
wrapperid: "fader",
dimensions: [366, 241],
imagearray: [
["http://www.bla.es/Tests/NewWeb/Pics/slideshowhg.png"],
["http://www.bla.es/Tests/NewWeb/Pics/slideshow1.png"],
["http://www.bla.es/Tests/NewWeb/Pics/slideshow2.png"],
["http://www.bla.es/Tests/NewWeb/Pics/slideshow2.png"],
["http://www.bla.es/Tests/NewWeb/Pics/slideshow3.png"],
["http://www.bla.es/Tests/NewWeb/Pics/slideshow4.png"],
["http://www.bla.es/Tests/NewWeb/Pics/slideshow5.png"],
["http://www.bla.es/Tests/NewWeb/Pics/slideshow6.png"]
],
displaymode: { type: 'auto', pause: 2500, cycles: 0, wraparound: false },
persist: false,
fadeduration: 700,
descreveal: "always",
togglerid: ""
})
</script>
</head>
<body>
<div class="main">
<div class="topBorder"></div>
<div id="fader"></div>
</div>
</body>
</html>
and the last try of css:
Code:
#fader{
width: 366px;
height: 241px;
background-image: url(../Pics/slideshowhg.png) !important;
background-repeat:no-repeat !important;
background-color: transparent !important;
margin-left: 264px !important;
}
I also tried it the css all in one line using the background attribute.
Any ideas how to get rid of the black square? Thanks.
Bookmarks