Videobox is a 6kb script, which shows your videos in the page with an overlay. It was inspired from Lightbox.v2 and uses some of the Slimbox 's code. It's written for the wonderful mootools library. And used SWFObject to embed flash.
Firstly, you should include 3 javascript files to your page. You can change the path, if you upload it to somewhere else. You can paste the code below in your head tag.
Code:
<script type="text/javascript" src="js/mootools.js"> </ script>
<script type="text/javascript" src="js/swfobject.js"> </ script>
<script type="text/javascript" src="js/videobox.js"> </ script>
And you must include the css file (for the styles).
Code:
<link rel="stylesheet" href="css/videobox.css" media="screen" type="text/css" />
And, here is the thing:
Code:
<a href="http://www.youtube.com/watch?v=uhi5x7V3WXE" rel="vidbox" title="caption"> our video </ a>
Add the rel = "vidbox" video to your page's link to show video links in Videobox, and add title = "my caption" to add caption to a box.
Bookmarks