|
Click me!
|
Click me!
|
Click me!
|
JW Box is a lightbox designed specifically for the JW Player. Unlike the player's full screen mode, JW Box allows you to see the sections of the screen not covered by the player itself. Best of all, JW Box allows you to use an unobtrusive placeholder for your player while still allowing it to expand for a better view when needed.
Setting up a jwbox is fast and easy. Just follow these simple steps and you'll be up and running in no time!
<script type="text/javascript" src="http://www.mydomain.com/jwbox/jquery.js"></script> <script type="text/javascript" src="http://www.mydomain.com/jwbox/jquery.jwbox.js"></script> <link rel="stylesheet" type="text/css" href="http://www.mydomain.com/jwbox/jwbox.css" />
* We recommend placing this HTML in the <head> of your page, but any place before your first JW Box should be fine.
The JW Box gives you complete control over your lightbox display. Specifically, it allows you to configure
What follows are some examples with common JW Box configurations.
For a more detailed explanation of how JW Box works and the purpose of each element, see Anatomy of a JW Box.
<div class="jwbox"> <img width="160" height="120" alt="JW Box Image" title="JW Box Image" src="[Thumbnail URL]"/> <div class="jwbox_hidden"> <div class="jwbox_content"> <object width="320" height="240" type="application/x-shockwave-flash" id="ply" name="ply" data="http://player.longtailvideo.com/player.swf"><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="flashvars" value="file=[Video URL]&image=[Thumbnail URL]"/></object> <p>Click the close button to return to the web page.</p> </div> </div> </div>You'll end up with something that looks like this:
<p>Click the image to display a player with a video in a JW Box.</p>
Click the close button to return to the web page.
Click the image to display a player with a video in a JW Box.
Note that the supplied <embed> is merely an example. If you've already got a player embedded on your page, simple replace the flashvars param with your own set of flashvars and update the height and width.
<div class="jwbox"> <img width="160" height="120" alt="JW Box Image" title="JW Box Image" src="[Thumbnail URL]"/> <div class="jwbox_hidden"> <div class="jwbox_content"> <div id="myPlayer"></div> <p>Click the close button to return to the web page.</p> </div> </div> </div>
<p>Click the image to display a player with a video in a JW Box.</p>
<div class="jwbox"> <img width="160" height="120" alt="JW Box Image" title="JW Box Image" src="[Image URL]"/> <div class="jwbox_hidden"> <div class="jwbox_content"> <img alt="JW Box Image" title="JW Box Image" src="[Image URL]"/> <p>Click the close button to return to the web page.</p> </div> </div> </div>You'll end up with something that looks like this:
<p>Click the image to display the image in a JW Box.</p>
Click the close button to return to the web page.
Click the image to display the image in a JW Box.
<div class="jwbox"> [Default display HTML] <div class="jwbox_hidden"> <div class="jwbox_content"> [Lightboxed HTML] </div> </div> </div>You'll end up with something that looks like this:
<p>Click the text to display some HTML in a JW Box.</p>
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
Click the close button to return to the web page.
Click the text to display some HTML in a JW Box.
<div class="jwbox"> [Default display HTML] <div class="jwbox_hidden"> <div class="jwbox_content"> [Lightboxed HTML] </div> </div> </div>A JW Box contains the following elements:
Download the newest JW Player built with Silverlight. It’s as flexible as the FLV Player but works with Windows Media files. What could be better?