IMPORTANT NOTE: Only one player can be rendered and controlled on a page. If you need to have more than one player on a page, you may want to consider using Wimpy Rave. Wimpy Rave offeres the ability to render more than on player on a page.
Rendering the player relies on two portions of HTML code:
1. A <div> "target"
The <div> target
The <div> tag must have the "id" attribute set to "wimpyTarget" (case sensative) as follows:
<div id="wimpyTarget">You need to upgrade your Flash Player</div>
NOTE: You may want to place the call to render the player "makeWimpyPlayer" at the bottom of your page so that it is the last "thing" that is done when the page loads.
NOTE: If you just want to load the player without a start-up track or playlist, you'll have to "trick" Wimpy by referencing an XML file that doesn't exist, or references a playlist that doesn't have any <item>'s in it. If you reference an XML file that doesn't exist (as in this example) you may recieve 404 errors in your server logs, so referencing "real" file that doesn't have any <items> will eliminate server log entries.
You can create a unique set of options when establishing the player to over-ride the default settings. To use unique values, create a new "object" and populate it with the settings you want to use. Then set the first argument for "makeWimpyPlayer" to the object name, followed by the width and height for the player.
NOTE: The second and third arguments (width and height) are optional.
NOTE: You only have to include the options within the object that you wish to over-ride. You don't have to include all the available arguments -- just the one that are unique.
var MySettings = new Object();
MySettings.wimpySkin = "skin_bop.xml";
MySettings.startPlayingOnload = "yes";
MySettings.startupLogo = "http://www.yoursite.com/path/to/image.jpg";
For more information on all the available options, see the "Options Reference" page.