JavaScript - Videobox Help Please
I have Videobox software (same as lightbox only for showing YouTube videos) linked from my website.
Thing is that when I show a video on my website it only shows at a size of 250px from left to right. This rather small I know that YouTube videos vary in size. What I want is for videobox to automatically resize to whatever size the YouTube video is. Does anyone know what I can do to create this. This is the code as it is: // When Lightbox starts it will resize itself from 250 by 250 to the current image dimension. // If animations are turned off, it will be hidden as to prevent a flicker of a // white 250 by 250 box. var size = (LightboxOptions.animate ? 250 : 1) + 'px'; It states that is should automatically resize but it doesn't All Help much appreciated Similar TutorialsI have a web page and on the click of one button I wish to play a video using videobox. On the click of a different button I wish to show an image in lightbox. On the page works Videobox works with just the videobox code or the Lightbox works with just the lightbox code. Neither of them work with both codes. I have all the code elements (including the css) for videobox in a folder called js All the code elements for lightbox in a folder called js2 Does anyone know why this is happening and how I can get to use both from seperate buttons on the same webpage? All help much appreciated This is the code I have used for them on the webpage: (The top code is for the videobox followed by the lightbox code) Code: <link rel="stylesheet" href="../../js/videobox.css" type="text/css" media="screen" /> <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> <link rel="stylesheet" href="../../js2/lightbox.css" type="text/css" media="screen" /> <script type="text/javascript" src="../../js2/prototype.js"></script> <script type="text/javascript" src="../../js2/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="../../js2/lightbox.js"></script> |