Raised This Month: $ Target: $400
 0% 

Execute function when the MotD is Closed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 05-24-2014 , 11:39   Execute function when the MotD is Closed
Reply With Quote #1

Is there a way to run a function when the client closes the MotD window ?
I know that its possible to run a function when the client selects a team, but that is too late.


Why I need this:
I am showing a video in the MotD window when a client connects to the server.
But as soon as they click "ok", I would like to stop the video (So the video doesnt continue to run in the background).

I have tried to implement it with jquery visibility api from mathiasbynens and it works on a desktop browser (the video is paused when the tab is changed), but its not working with the ingame browser.

So I thought of loading a blank page in the motd when the users clicks on ok.
Is there another way to stop playing the video once the client clicks on ok (closes the motd window)?
__________________
Arrow768 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode