Created
April 9, 2010 20:54
-
-
Save iammerrick/361576 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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