Arguments
None.
Returns
Dreamweaver expects the string to insert into the user's document.
Example
The following example of the
specific ActiveX control and plug-in:
function objectTag() {
return '\n' +
'<OBJECT CLASSID="clsid:166F1OOB-3A9R-11FB-8075444553540000" \n'¬
+ 'CODEBASE="http://www.mysite.com/product/cabs/¬
myproduct.cab#version=1,0,0,0" \n' + 'NAME="MyProductName"> \n' ¬
+ '<PARAM NAME="SRC" VALUE=""> \n' + '<EMBED SRC="" HEIGHT="" ¬
WIDTH="" NAME="MyProductName"> \n' + '</OBJECT>'
}
windowDimensions()
Description
This function sets specific dimensions for the Options dialog box. If this function is not defined,
the window dimensions are computed automatically.
Note: Do not define this function unless you want an Options dialog box that is larger than
640 x 480 pixels.
Arguments
platform
•
The value of the
user's platform.
Returns
Dreamweaver expects a string of the form
The returned dimensions are smaller than the size of the entire dialog box because they do not
include the area for the OK and Cancel buttons. If the returned dimensions do not accommodate
all options, scroll bars appear.
Example
The following example of the
Parameters dialog box to 648 x 520 pixels for Windows and 660 x 580 pixels for the Macintosh:
function windowDimensions(platform){
var retval = ""
if (platform = = "windows"){
retval = "648, 520";
}else{
retval = "660, 580";
}
return retval;
}
objectTag()
argument is either
platform
windowDimensions()
function inserts an
OBJECT/EMBED
or
"macintosh"
"widthInPixels,heightInPixels"
function sets the dimensions of the
combination for a
, depending on the
"windows"
.
The Objects API
125
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers