user2416130
user2416130

Reputation:

Auto play after site fully loads

Okay don't bash me but...

Is there a way to autoplay a vimeo video via iframe 'Only' after the entire website is fully loaded? I'm going to assume javascript/jquery but that's just a thought.

Upvotes: 0

Views: 148

Answers (2)

dead
dead

Reputation: 364

With jquery you can do something like this

$(document).ready(function() { 
    $("iframe", { 
       src: ''
       ..
     }).appendTo("#myDiv");
});

Upvotes: 0

Samuel Reid
Samuel Reid

Reputation: 1766

You'll probably need to use this: http://developer.vimeo.com/player/js-api

And you'll probably need to put your code in the window.onload event in order to ensure that the entire page loads before it begins playing.

Upvotes: 1

Related Questions