Ninja Slider / Posts /

Remove arrows once video is playing

22

I have my arrows inside my div so when I click to open my video I would like the arrows to disappear and then reappear once I close out of the video. I tried through JS but not able to target the ".stopVideoIcon" div because it isn't actually in the html I guess.

Brandon  6 years ago   viewed: 13170    

7 Answers

0

I think you are on track, and you have found the following code in ninjaVideoPlugin.js:

f.className="stopVideoIcon";f.onclick=function(a){g.unloadPlayer();a.stopPropagation()};

Then you can add your own function into the f.onclick event:

f.className="stopVideoIcon"; f.onclick=function(a){ if (myStopVideoCallback) myStopVideoCallback(); g.unloadPlayer();a.stopPropagation()};

And add the following script to your page:

<script>
function  myStopVideoCallback() {
$("#ninja-slider-prev").show();
$("#ninja-slider-next").show();
}
</script>
Milo   6 years ago
0

It’s awesome in favor of me to have a web site, which is helpful designed for my know-how. thanks admin 

 subway surfers

nancydrews
  7 months ago
0

i also wanted to do the same and it's great that the comments below helped me succeed. Thanks for your great question

death run 3d

jordan
  6 months ago
0

I am also quite stuck and fortunately reading your question is similar to mine. Especially following Milo's code, it succeeded beyond imagination

f.className="stopVideoIcon";f.onclick=function(a){g.unloadPlayer();a.stopPropagation()};

f.className="stopVideoIcon"; f.onclick=function(a){ if (myStopVideoCallback) myStopVideoCallback(); g.unloadPlayer();a.stopPropagation()};

<script>
function  myStopVideoCallback() {
$("#ninja-slider-prev").show();
$("#ninja-slider-next").show();
}
</script>

stickman boost


jenny
  6 months ago
0
I guess you're right on track just adding those scripts above would make it even more accurate.

ad fraud heating maintenance plumbing repair Baltimore

Kryz
  3 months ago
0

I'm in a similar position, and it's encouraging to see that your inquiry is similar to mine. By adhering to Milo's rules in particular, it was wildly successful. cookie clicker

orville
  3 months ago
0

To fully open the window, tap on the black square after tapping on the three dots at the top of the window. When you're ready to close it normally, swipe it up.

gartic phone

leochad
  2 months 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: