|
To view the applet tags used on this page, right click inside this frame and choose View Source Here, three images have been used, along with all four possible sounds. The basic image has black edges, so the button color has also been set to black (the focussed and pressed buttoncolors will take the same color by default). The applet's size has been increased so that it's larger than the largest image, and the TopMargin parameter has been used to push the single line of text towards the bottom of the applet (remember that AutoWrap must be switched on in order to adjust the alignment and margins for a single line of text). An alternative way to achieve a similar result is by placing empty delimiters before the words in the label, thus removing the need for the TopMargin and AutoWrap parameters; you can see this delimited line commented-out when you view this page's source. The ScaleImages parameter has been set to 'no' to ensure that each image is centered, regardless of its dimensions. A similar example, below, illustrates how fewer than three images can be used. In this case, no BgImage is used, and the basic ButtonColor is set to match the page background. Because all we need here is a single line of text, it would ordinarily be centered vertically within the applet. To force it to the top, we've included the AutoWrap parameter with a value of 'yes'. |