Adobe 38040334 - Dreamweaver CS3 User Manual page 310

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

to insert a
"javascript"
to insert a
"vbscript"
not to insert a reference in the head
""
• "
" is a Boolean value that determines how the value set in "
useDefault
. If true, Dreamweaver treats "
true
"
" is a relative path to the site root.
destURL
• "
" is a Boolean value that determines how the value set in "
useRelativeSrc
value is
. If
false
false
Returns
Nothing.
Example
function objectTag()
{
.
.
.
var dom = dw.getDocumentDOM();
var assetList = new Array();
var assetInfo = new AssetInfo("Objects/Ajax/Accordion.css", "Objects/Ajax/Accordion.css",
"Accordion.css", "link");
assetList.push(assetInfo);
assetInfo = new AssetInfo("Objects/Ajax/Accordion.js", "Accordion.js", "javascript");
assetList.push(assetInfo);
assetInfo = new AssetInfo("Objects/Ajax/Images", "Images", "");
assetList.push(assetInfo);
dom.copyAssets(assetList);
return retVal;
}
dom.getDefaultAssetFolder()
Availability
Dreamweaver CS3.
Description
Gets the default asset folder of the document.
Arguments
None.
Returns
A string that is the default asset folder name.
Example
function objectTag()
{
.
.
tag with type=text/javascript
SCRIPT
tag with type=text/vbscript
SCRIPT
" as a relative path to the Spry assets folder of the site. If
destURL
, "
" is inserted as an absolute path when "
srcURL
" is interpreted. The default is
destURL
" is interpreted. The default
destURL
" is specified.
referenceType
DREAMWEAVER CS3
305
API Reference
,
false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents