Adobe 38040334 - Dreamweaver CS3 User Manual page 125

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Arguments
None.
Returns
Dreamweaver expects the string to insert into the user's document.
Example
The following example of the
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 dimen-
sions 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
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
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;
}
function inserts an
objectTag()
argument is either
"macintosh"
"widthInPixels,heightInPixels"
function sets the dimensions of the Parameters dialog box to
windowDimensions()
combination for a specific ActiveX
OBJECT/EMBED
or
, depending on the user's platform.
"windows"
.
DREAMWEAVER CS3
119
Extending Dreamweaver

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents