crossPlayer_basic
addButton method.

cp.myPlayer.addButton
cp.myPlayer.addButton ( ... )
property type: function.
return value: true

With this method buttons can be added into the crossPlayer interface. Any number of buttons can be added, but remember that when the total height exceeds the plug-in height the interface will stretch itself vertically to fit. This method takes 9 arguments to allow many options to the functionality if each button. If you want an argument to be overridden just set it to null.
Argument 1;
Link Href; The ordinary link thing. (<A HREF="..." ...>)

Argument 2;
Target for link set with argument 1.
Common valid targets are;
"_parent"
"_blank" ( default )
"_self"
"_top
...targets can also be any other by name defined window, in framesets, pop up windows etc.

Argument 3;
Button title. Sets the image ALT attribute.

Argument 4;
Image src path or an Image-object. Relative or absolute.

!TIPS! If your buttons are created and pre-loaded using the "new Image", then pass in that object. This results in a faster appearance of the player. Same goes for roll-over images.

Argument 5;
Rollover Image src path. If this argument is set, crossPlayer will automatically create a mouseover effect where the image referenced here goes visible on a mouseover event.
If you don't want a mouseover FX, just state null here.

Argument 6;
Onclick javascript; shovel in a portion of stringified javascript here that you want executed on a click event.

Argument 7;
Mouseover javascript; same rules as Argument 6.

Argument 8;
Mouseover javascript; same rules as Argument 6.

Argument 9;
Reserved for custom image HTML attributes.
(i.e. "HSPACE=10 VSPACE=5" )
See the example area for various ways of the addButton usage.
crossPlayer_basic reference Index.