The Data Translator Api Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

}else{
}
}else{
imageRef = "images/kent_sleeping.jpg";
}
//If it's after midnight and before 10am, or anytime on Sunday
}else{
imageRef = "images/kent_sleeping.jpg";
}
return imageRef;
}
</script>
</head>
<body>
</body>
</html>
Save the file as kent.htm in the Configuration/Translators folder.
3

The data translator API functions

This section describes the functions used to define translators for Dreamweaver.
getTranslatorInfo()
Description
This function provides information about the translator and the files it can affect.
Arguments
None.
Returns
An array of strings. The elements of the array must appear in the following order:
The
1
translatorClass
contain only alphanumeric characters, hyphens (-), and underscores (_).
The
string describes the translator in no more than 40 characters.
2
title
The
string specifies the number of file extensions to follow. If
3
nExtensions
can run on any file. If
nExtensions
4
The
string specifies a file extension (for example,
extension
This string is not case-sensitive and should not contain a leading period. The array should contain the same number
of
elements that are specified in
extension
The
string specifies the number of regular expressions that follow. If
5
nRegExps
the next element in the array.
imageRef = "images/kent_hardAtWorkOnWin.jpg";
string uniquely identifies the translator. This string must begin with a letter and can
is zero,
nRegExps
nExtensions
nExtensions
is the next element in the array.
or
"htm"
"SHTML"
.
DREAMWEAVER CS3
Extending Dreamweaver
is zero, the translator
) that works with this translator.
is zero,
nRegExps
runDefault
341
is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents