Ninja Slider / Posts /

Remove arrows once video is playing


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: 13638    

6 Answers


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


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:

function  myStopVideoCallback() {
Milo   6 years ago

You are right and it is important to remember to add your own function into the f.onclick Drift Boss

  4 months ago
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

  10 months ago

One possible solution is to use JavaScript to add a class to the parent <div> when the video is opened, and remove the class when the video is closed. 

Garten Of Banban

  6 months ago

The steps you did are already pretty good. Add a few more algorithms and you're done 

geometry dash bloodbath

  2 months ago

ITSM is built on a set of best practices and frameworks like ITIL (Information Technology Infrastructure Library) and COBIT (Control Objectives for Information and Related Technologies). These frameworks provide a structured approach to managing IT services, ensuring efficiency and effectiveness. cement tile phoenix

  2 days ago


Your name*
(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: