|
||||||
It's Not Just Help. . . So How Does It Work? HTML Topics & Templates CSS DHTML
Project File (.hhp) Contents File (.hhc) Merging Modular Files Accelerating Links Distribution & Installation HTML Help Resources on the Web |
Status Bar Explanation Recipe
|
<SCRIPT LANGUAGE="JavaScript">
function moreInfo(dialogName)
{
window.status="This image shows the " + dialogName + " dialog. Click on image elements for specific details.";
}
</SCRIPT>
where
dialogName |
is a variable passed from the calling element to the function; in this case, it is the name of the dialog shown in the graphic. |
<IMG NAME="dialogName" SRC="picture.gif" onLoad="moreInfo(this.name)">
Note that the SRC property can use any filename; it need not be the same as the image’s NAME property, although it should refer to the same image.
Use this recipe to display other information in the status bar by substituting an onClick event handler for the onLoad handler used here (onLoad works with images and the document body; onClick works with virtually any HTML element)..