Web Analytics Made Easy -
StatCounter Auto continue after slide selected - CodingForum

Announcement

Collapse
No announcement yet.

Auto continue after slide selected

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Auto continue after slide selected

    Is it possible to have the slideshow continue after someone selects a slide? like say they click 4 then after a couple seconds it continues. Right now it auto starts on its own but as soon as u select a slide it stops on that slide in definitely.

    http://www.habugfx.com/slideshow/Untitled-1.html

    I also would like to know how to align the font. cause i forced a change. and now it seems to be closer to the top.
    Last edited by PitbullMean; Apr 8, 2009, 08:22 PM. Reason: Added something else
    Eric "PitbullMean" Melo
    Always Start your layout with*{border:0; margin:0; padding:0;}
    Be sure to Thank ALL Users who give assistance.

  • #2
    anyone able to help with this topic?
    Eric "PitbullMean" Melo
    Always Start your layout with*{border:0; margin:0; padding:0;}
    Be sure to Thank ALL Users who give assistance.

    Comment


    • #3
      Hi there.

      It looks like you've posted in the wrong forum for this. Ask a moderator to move your thread to the javascript forum and ask those nice folks about how to implement setTimeout() or some other method to start the slideshow running again after a certain amount of time has passed. I'm not too handy with javascript just yet but I would imagine you would be making use of setTimeout() along with this code to get things running again:
      Code:
      turnpage:function(setting, thepage, autocall){
      	var currentpage=setting.currentpage //current page # before change
      	var totalpages=setting.contentdivs.length
      	var turntopage=(/prev/i.test(thepage))? currentpage-1 : (/next/i.test(thepage))? currentpage+1 : parseInt(thepage)
      	turntopage=(turntopage<1)? totalpages : (turntopage>totalpages)? 1 : turntopage //test for out of bound and adjust
      	if (turntopage==setting.currentpage && typeof autocall=="undefined") //if a pagination link is clicked on repeatedly
      		return
      	setting.currentpage=turntopage
      	setting.contentdivs[turntopage-1].style.zIndex=++setting.topzindex
      	this.cleartimer(setting, window["fcsfade"+setting.id])
      	setting.cacheprevpage=setting.prevpage
      	if (setting.enablefade[0]==true){
      		setting.curopacity=0
      		this.fadeup(setting)
      	}
      	if (setting.enablefade[0]==false){ //if fade is disabled, fire onChange event immediately (verus after fade is complete)
      		setting.contentdivs[setting.prevpage-1].style.display="none" //collapse last content div shown (it was set to "block")
      		setting.onChange(setting.prevpage, setting.currentpage)
      	}
      	setting.contentdivs[turntopage-1].style.visibility="visible"
      	setting.contentdivs[turntopage-1].style.display="block"
      	if (setting.prevpage<=setting.toclinks.length) //make sure pagination link exists (may not if manually defined via "markup", and user omitted)
      		this.css(setting.toclinks[setting.prevpage-1], "selected", "remove")
      	if (turntopage<=setting.toclinks.length) //make sure pagination link exists (may not if manually defined via "markup", and user omitted)
      		this.css(setting.toclinks[turntopage-1], "selected", "add")
      	setting.prevpage=turntopage
      	if (this.enablepersist)
      		this.setCookie("fcspersist"+setting.id, turntopage)
      }
      That's just a guess for now though. Ask the experts!
      The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
      See Mediocrity in its Infancy
      It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
      Seek and you shall find... basically:
      validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

      Comment


      • #4
        can someone move this please
        Eric "PitbullMean" Melo
        Always Start your layout with*{border:0; margin:0; padding:0;}
        Be sure to Thank ALL Users who give assistance.

        Comment

        Working...
        X