Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created April 9, 2010 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iammerrick/361576 to your computer and use it in GitHub Desktop.
Save iammerrick/361576 to your computer and use it in GitHub Desktop.
var Video = new Class({
initialize: function(url, preview){
this.element = new Element('div',{
'class': 'help_video'
});
new Swiff('swf/player.swf', {
container: this.element,
width: 918,
height: 600,
params: {
wmode: 'opaque',
bgcolor: '#fff'
},
vars: {
file: url
}
});
},
toElement: function(){
return this.element;
},
hide: function(){
}
});
window.addEvent('domready', function(){
var faculty_help = new Video('../swf/Faculty.flv', '../swf/preview.jpg');
$(faculty_help).inject('faculty_help');
var links_help = new Video('../swf/Links.flv', '../swf/preview.jpg');
$(links_help).inject('links_help');
var faculty_experience = new Video('../swf/Faculty Experience.flv', '../swf/preview.jpg');
$(faculty_experience).inject('faculty_experience_help');
var files_help = new Video('../swf/Files.flv', '../swf/preview.jpg');
$(files_help).inject('files_help');
var users_help = new Video('../swf/Users.flv', '../swf/preview.jpg');
$(users_help).inject('users_help');
Video.prototype.hide();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment