Results 1 to 3 of 3

Thread: set background for slideshow fadeslideshow.js

  1. #1
    Join Date
    Jan 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default set background for slideshow fadeslideshow.js

    1) Script Title: 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
    ***********************************************/

    2) Script URL (on DD):

    3) Describe problem: during slide show
    white background is flashed / displayed
    how can i set it so that only text will fade in and out

    My code html
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title> 
     <script type="text/javascript" src="js/jquery.min.js"></script>     <script type="text/javascript" src="js/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: "fadeshow3", //ID of blank DIV on page to house Slideshow
    	dimensions: [235, 61], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    		["images/slogan2.jpg", "", "", ""],//<-- blank 
    		["images/slogan1.jpg", "", "", ""],//<-- with message
    		["images/slogan2.jpg", "", "", ""],
    		["images/slogan2.jpg", "", "", ""]//<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'auto', pause:3500, cycles:0, wraparound:false},
    	persist: false, //remember last viewed slide and recall within same session?
    	fadeduration: 2000, //transition duration (milliseconds)
    	descreveal: "ondemand",
    	togglerid: ""
    })
    
    </script>
    </head>
    
    <body><div id="fadeshow3" align="center" style="background-color:#0c2b5e;"></div>
    </body>
    </html>

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Please provide a working link to demonstrate then behaviour you describe. Also advise if this happens in any particular OS, browser or device so that we can recreate the problem accurately.

    Does it happen on the live demo here on the DD website too? (you should provide that link so that we can compare)
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    If you have slides with text and you want the background to show through, then JPG is the wrong format. Try creating the slides in PNG or GIF format with a transparent background.

Similar Threads

  1. fadeslideshow background colour
    By yvonneth in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-20-2012, 08:29 PM
  2. how do you make background transparent in fadeslideshow
    By rusty813 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-18-2011, 01:43 AM
  3. Ultimate Fade-in slideshow v2.4 for background slideshow?
    By Reiyaku in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-13-2011, 12:37 AM
  4. Replies: 10
    Last Post: 11-04-2010, 06:19 PM
  5. Replies: 0
    Last Post: 06-03-2010, 10:47 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
  •