Javascript Image Slider / Posts /

Different Timer for each image

0


Hey,

Can you explain how to acheive different pause time for different image...Thanks in advance

 

John  10 years ago   viewed: 3545    

5 Answers

0
0

hello, could you please paste an example of how to set different pause time for different slides? I just can't make it work

AR   7 years ago
0
Thanks Milo ..I used

 

function afterSlideChange(args)

John
  10 years ago
0
Can you guide me how to get the video end event
John
  10 years ago
-1

If your video is YouTube, you will find the following code
(Currently it is the /* Menucool Video Plugin v2014.2.5. Copyright www.menucool.com */):

function f(b){if(b.data==0){var d=document.getElementById("mcVideo"+a.Id), c=d.parentNode.parentNode.getAttribute("data-autonext"); if(c=="replay")b.target.d();else c!="false"&&a.To(1,1);mcVc(a.Id,1)} if(b.data==1)mcVc(a.Id,0);else b.data==2&&mcVc(a.Id,2)}

That is minified from:

function onPlayerStateChange(event) {     if (event.data == 0) { //ended         var ifrm = document.getElementById("mcVideo" + innerSlider.Id);         var autonext = ifrm.parentNode.parentNode.getAttribute("data-autonext");         if (autonext == "replay")             event.target.playVideo();         else if (autonext != "false")             innerSlider.To(1,1);         mcVc(innerSlider.Id, 1);     }     if(event.data == 1) //playing         mcVc(innerSlider.Id, 0);     else if (event.data == 2) //paused         mcVc(innerSlider.Id, 2); }

So you can insert your call in the block within the b.data==0 block.

Milo   10 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: