<!DOCTYPE html>
<HTML>
<HEAD>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<STYLE>
video {
right: 0;
bottom: 0;
min-width: 50%;
min-height: 50%;
max-width: 90%;
max-height:90%;
width: auto;
height: auto;
</STYLE>
</HEAD>
<BODY BGCOLOR=black>
<center><video width="853" height="480" autoplay="autoplay">
<source src="file:///C:/Program Files/NARUTO SHIPPUDEN Ultimate Ninja STORM 2/IntroMovie.mp4" type="video/mp4" />
Your browser does not support HTML5 video.
</video></center>
<SCRIPT TYPE="text/javascript">
document.addEventListener("onclick", function(){
window.location = "byond://winset?command=skipIntro";
});
document.addEventListener("oncontextmenu", function(){
window.location = "byond://winset?command=skipIntro";
});
document.addEventListener("onkeypress", function(){
window.location = "byond://winset?command=skipIntro";
});
</SCRIPT>
</BODY>
</HTML>
Client Code:
client
var/intro=0;
verb
skipIntro() {
intro=1;
src << browse(null,"window=output1");
winshow(src,"default.output1",0);
}
For some reason when I call
src << browse(null,"window=output1");
winshow(src,"default.output1",0);
Just to clarify, is the problem with this the fact that the verb skipIntro() isn't being called by the Javascript because of document.addEventListener or is it a different problem?