Description
Gets target media type for rendering. The default media type is
Arguments
None.
Returns
A string value that specifies the target media type.
Example
var mediaType = dw.cssStylePalette.getMediaType();
dreamweaver.cssStylePalette.getSelectedStyle()
Availability
Dreamweaver 3;
fullSelector
Description
Gets the name of the style that is currently selected in the Styles panel.
Arguments
fullSelector
The
fullSelector
only the class should return. If nothing is specified, only the class name returns. For
instance,
p.class1
it does not apply, for instance, to a
argument, the
dreamweaver.cssStylePalette.getSelectedStyle()
only the class name,
function to return
Returns
When the
fullSelector
selector or an empty string when the stylesheet node is selected.
When the
fullSelector
the class name of the selected style returns. If the selected style does not have a class or a
stylesheet node is selected, an empty string returns.
Example
If the style
is selected, a call to the
red
function returns
"red"
available in Dreamweaver MX.
argument is a Boolean value that indicates whether the full selector or
is a selector that means the style is applied to any
tag of
div
, for the selector. The
class1
instead of
p.class1
argument is a
true
argument is a
false
dw.cssStylePalette.getSelectedStyle()
.
"screen".
. Without the
class1
fullSelector
.
class1
value, the function returns either the full
value or it is omitted, a string that represents
tag of
, but
p
class1
fullSelector
function returns
argument tells the
CSS functions
433
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?
Questions and answers