View Single Post
Old 01-25-2017, 01:42 PM  
AnimeFevers
♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
 
AnimeFevers's Avatar
 
Industry Role:
Join Date: Apr 2009
Location: Tell your mom, money is on the fridge
Posts: 3,558
Quote:
Originally Posted by blackmonsters View Post
OK, try this : Change the link and video url of course.

Code:
<a href="http://google.com" target="_blank"><video id=bannervid preload="auto" width="300" height="100" preload="auto" src="soultrain.mp4" loop="loop" autoplay="autoplay" muted="muted"></video></a>


<script>
function vidloop() {
	bannervid.currentTime=0;
	bannervid.play();
} 

window.onload = function(){ 
	bannervid = document.getElementById("bannervid");
	bannervid.addEventListener("ended", vidloop, false);
	setTimeout(playitnow, 1300); 
}
function playitnow() {
	bannervid.volume=0;
	bannervid.play();
}
</script>
The banner seems to be broken when I try this code

Quote:
Originally Posted by Colmike7 View Post
Which iOS version are you testing?
The latest version, I'm testing these codes with ios 10.2
__________________
icq - 556766871
email - animefevers(AT)hotmail(DOT)co(DOT)uk
AnimeFevers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote