![MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Скачать руководство пользователя страница 205](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-dreamweaver-api/dreamweaver-mx-2004-dreamweaver-api_reference_3336554205.webp)
Toolbar functions
205
dom.setToolbarItemAttribute()
Availability
Dreamweaver MX 2004.
Description
Changes an attribute value for the three image attributes or the tooltip attribute on a toolbar
item.
Arguments
toolbarID
,
toolbarItemId
,
attrName
,
attrValue
•
The
toolbarID
argument is a string that specifies the ID of the toolbar.
•
The
toolbarItemId
argument is a string that specifies the ID of the toolbar item.
•
The
attrName
argument is a string that specifies the name of the attribute to set. Valid values
are '
image'
, '
overImage'
, '
disabledImage'
, or '
tooltip'
.
•
The
attrValue
argument is a string that specifies the value to set.
Returns
Nothing.
Example
The following example calls
dom.setToolbarItemAttribute()
three times to set the
image
,
imageOver
, and
tooltip
attributes for the toolbar item
MyButton
on the toolbar having the ID
DW_Toolbar_Main
:
var dom = dw.getDocumentDOM();
dom.setToolbarItemAttribute('DW_Toolbar_Main', 'MyButton, 'image', 'Toolbars/
imgs/newimage.gif');
dom.setToolbarItemAttribute('DW_Toolbar_Main', 'MyButton, 'imageOver',
'Toolbars/imgs/newimageOver.gif');
dom.setToolbarItemAttribute('DW_Toolbar_Main', 'MyButton, 'tooltip', 'One fine
button');
dom.setShowToolbarIconLabels()
Availability
Dreamweaver MX.
Description
This function tells Dreamweaver to show the labels of buttons that have labels. Dreamweaver
always shows labels for non-button controls, if the labels are defined.
Arguments
bShow
•
The
bShow
argument is a Boolean value:
true
shows the labels for buttons;
false
otherwise.
Returns
Nothing.
000_DW_API_Print.book Page 205 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...