Results 1 to 7 of 7

Thread: Full Screen Slideshow - Message possible while loading images?

  1. #1
    Join Date
    Jan 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Full Screen Slideshow - Message possible while loading images?

    I am using the fpslideshow for example at http://www.stoupa.de/de/unterkunft/apartments/alkyoni.php
    Is it possible to display a message like for examle 'Images are looading - please be patient...' while the images are loading?

    Let me know how to do that. Thanks in advance!!
    Last edited by Beverleyh; 01-22-2015 at 04:51 PM.

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

    Default

    Try optimising your images first http://tools.dynamicdrive.com/imageoptimizer/

    The slideshow images total 1.45MB at present, but if you optimise them, you'll get them down to about 800kb. And at almost half the size, it means that they'll load in almost twice as fast.
    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
    Jan 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your quick reply!
    I know my images are not well optimised. But even with optimised images the visitor would have to wait a couple of seconds - especially on slower connections...
    I believe it can't be very difficult to add such a message. I just don't know how (where) to do it. Can anyone help regarding this?

  4. #4
    Join Date
    Jan 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please guys! No way to do that?

  5. #5
    Join Date
    Jan 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    Try optimising your images first http://tools.dynamicdrive.com/imageoptimizer/

    The slideshow images total 1.45MB at present, but if you optimise them, you'll get them down to about 800kb. And at almost half the size, it means that they'll load in almost twice as fast.
    I tried your optimiser.
    When trying to optimise them to about 50% of the original file size the image quality decreases significantly. So I am staying with my beloved Gimp...

  6. #6
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    the message HTML

    Code:
    <div id="loadwindow" style="position:absolute;z-Index:101;left:100px;top:100px;width:200px;height:100px;background-Color:red" >loading message</div>
    additional option

    Code:
    fullpageslideshow.init({ //initialize script
    	imagesobj: fpslideshowvar, //no need to change. Object variable referencing images as generated inside "fpslideshow.php"
    	thumbdir: 'thumbnails', //sub directory directly below main images directory containing the thumbnail versions. Image names should be same as main images.
    	sortby: 'date', //sort by "date" or "filename"
        loadingid:'loadwindow',
    	fadeduration: 1000,
    	thumbdimensions:[30,30],
    	autorotate:{enabled:true, pause:4000}
    })
    modify function (change in red)

    Code:
    	init:function(options){
    		this.setting=$.extend({}, this.setting, options)
    		this.setting.autorotate.pause+=this.setting.fadeduration
    		var images=options.imagesobj.images || options.imagesobj, imagesarr=this.imagesarr
    		images.pop()
    		if (options.imagesobj.baseurl){ //if images are auto retrieved using PHP
    			this.setting.thumbdir=options.imagesobj.baseurl+this.setting.thumbdir+"/" //augment thumbnail directory with baseurl to form full URL to thumbs dir
    			if (options.sortby=="date")
    				images.sort(function(a,b){return new Date(b[2])-new Date(a[2])})
    			else{
    				images.sort(function(a,b){ //sort by file name
    					var filea=a[1].toLowerCase(), fileb=b[1].toLowerCase()
    					return (filea<fileb)? -1 : (filea>fileb)? 1 : 0
    				})
    
    			}
    		}
    		var thumbsarr=['<ul class="fpthumbs" style="z-index:1001">']
    		for (var i=0; i<images.length; i++){
    			imagesarr[i]=new Image()
    			imagesarr[i].src=(options.imagesobj.baseurl)? options.imagesobj.baseurl+images[i][1] : images[i]
    			imagesarr[i]._index=i
    			thumbsarr.push('<li></li>')
    		}
    		thumbsarr.push('</ul>')
            var d=document.getElementById(options.loadingid);
            if (d&&window['preload']){
             preload(imagesarr,d)
            }
    		jQuery(function($){
    			var slideshow=fullpageslideshow
    			var layers=$('<div style="position:absolute;left:0;top:0; width:100%; height:100%;overflow:hidden;background:black;" />').clone().andSelf().appendTo(document.body)
    			var thumbs=$(thumbsarr.join('')).appendTo(document.body)
    			thumbs=thumbs.find('li')
    			thumbs.each(function(i){
    				var $thumb=$(this)
    				this._index=i
    				$thumb.css({left: 60*i+20})
    				$thumb.click(function(){
    					clearTimeout(slideshow.setting.rotatetimer)
    					slideshow.changeimage(this._index)
    				})
    			})
    			slideshow.layers=layers
    			slideshow.thumbs=thumbs
    			slideshow.templayer=$('<div style="position:absolute;left:-5000px;top:-5000px;visibility:hidden" />').appendTo(document.body)
    			slideshow.signalcomplete()
    			$(window).resize(function(){
    				if (imagesarr[slideshow.curimage].complete==true)
    					var cssattr=slideshow.scaleimage(imagesarr[slideshow.curimage])
    					slideshow.layers.eq(slideshow.layerorder.fg).find('img').css(cssattr)
    			})
    		})
    	}
    new function

    Code:
    function preload(a,d){
     clearTimeout(preload[d.id]);
     for (var z0=0;z0<a.length;z0++){
      if (a[z0].width<40){
       return preload[d.id]=setTimeout(function(){ preload(a,d); },200);
      }
     }
     d.style.visibility='hidden';
    }
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  7. #7
    Join Date
    Jan 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That works like a charm!!

    THANK YOU!!!

Similar Threads

  1. Looking for multi-functional slideshow - full screen, customizable appearance, etc.
    By tnd1000 in forum Looking for such a script or service
    Replies: 8
    Last Post: 10-19-2012, 10:41 PM
  2. Ultimate Fade-In Slideshow - making the show full-screen
    By tnd1000 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-24-2012, 07:23 PM
  3. Ultimate Slideshow Some Images Not Loading
    By bwd in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-05-2012, 01:38 AM
  4. Ultimate Slideshow Some Images Not Loading
    By pixelmason in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-27-2011, 01:01 PM
  5. Full-Screen Pop-Up.
    By Moglizorz in forum HTML
    Replies: 5
    Last Post: 04-22-2007, 01:52 AM

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
  •