
17
Creating and Using Objects
1
</tr>
<tr>
<td align=”right” height=”5”></td>
<td colspan=”4” rowspan=”2”> <textarea name=”script” i
cols=”50” rows=”8”></textarea>
</td>
</tr>
<tr>
<td align=”right” valign=”top” nowrap>Content:</td>
</tr>
<tr>
<td align=”right” height=”5”></td>
<td colspan=”4” rowspan=”2”><textarea name=”noscript” i
cols=”50”></textarea></td>
</tr>
<tr>
<td align=”right” valign=”top” nowrap>No Script:</td>
</tr>
</table>
</form>
When the parameter form is displayed as an object, Dreamweaver automatically adds the OK and
Cancel buttons; a Help button is added if the displayHelp() function is defined. When you select
the OK button, the objectTag() function combines the values in the <select> and <textarea>
tags with the necessary HTML tags to write the <script> code.
Sizing the Parameter Form Dialog Box
A
lthough you cannot control all aspects of your parameter form—Dreamweaver automatically inserts the
OK and Cancel buttons on the upper right—you can designate the dimensions of the parameter’s dialog
box. Generally, Dreamweaver sizes the dialog box automatically, but for a complex object, you can speed
up the display by using the windowDimensions() function. Moreover, if the object is intended for general
distribution, you can set different window dimensions for the Macintosh and Windows platforms.
The windowDimensions() function takes one argument, platform, and ...