User Guide

434 Design
dreamweaver.cssStylePalette.getSelectedTarget()
(deprecated)
Availability
Dreamweaver 3; deprecated in Dreamweaver MX because there is no longer an Apply To
Menu in the Styles panel.
Description
This function gets the selected element in the Apply To pop-up menu at the top of the Styles
panel.
Arguments
None.
Returns
A deprecated function; always returns a null value.
dreamweaver.cssStylePalette.getStyles()
Availability
Dreamweaver 3.
Description
Gets a list of all the class styles in the active document. Without arguments it just returns class
selector names. If the
bGetIDs argument is true, it returns just ID selector names. In either
case, if the
bGetFullSelector argument is true, it returns the full selector name.
For example, given an HTML file with the following code:
<style>
.test{ background:none };
p.foo{ background:none };
#bar {background:none };
div#hello p.world {background:none};
The calls in the following table return the values in the Result column.
Function call Result
dw.cssStylePalette.getStyles() foo,test,world
dw.cssStylePalette.getStyles(true) bar,hello
dw.cssStylePalette.getStyles(false, true) p.foo,.test,div#hello p.world
dw.cssStylePalette.getStyles(true, true) #bar,div#hello p.world
000_DW_API_Print.book Page 434 Wednesday, July 20, 2005 11:58 AM