![MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Скачать руководство пользователя страница 296](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-dreamweaver-api/dreamweaver-mx-2004-dreamweaver-api_reference_3336554296.webp)
296
Chapter 15: Page Content
Returns
An array of the following three strings for each selected item:
•
The
name
string, which is the name/filename or nickname that appears in the Assets panel.
•
The
value
string, which is the full path, full URL, or color value, depending on the selected
item.
•
The
type
string, which is either
"folder"
or one of the following categories:
"templates"
,
"library"
,
"images"
,
"movies"
,
"shockwave"
,
"flash"
,
"scripts"
,
"colors"
, or
"urls"
.
Note:
If nothing is selected in the Assets panel, this function returns an array that contains one
empty string.
Example
If URLs is the category, and a folder MyFolderName and a URL MyFavoriteURL are both
selected in the Favorites list, the function returns the following list:
items[0] = "MyFolderName"
items[1] = "//
path/FolderName
"
items[2] = "folder"
items[3] = "MyFavoriteURL"
items[4] = "http://www.MyFavoriteURL.com"
items[5] = "urls"
dreamweaver.assetPalette.getSelectedView()
Availability
Dreamweaver 4.
Description
Indicates which list is currently shown in the Assets panel.
Arguments
None.
Returns
Returns a string that has a value of either
"site"
or
"favorites"
.
dreamweaver.assetPalette.insertOrApply()
Availability
Dreamweaver 4.
Description
Inserts selected elements or applies the element to the current selection. It applies templates,
colors, and URLs to the selection; it also inserts URLs and other elements at the insertion point.
If a document isn’t open, the function is not available.
Arguments
None.
000_DW_API_Print.book Page 296 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...