Adobe 38040334 API Reference - Page 351
causes the function to return just ID selector, argument is optional. It is a Boolean value that, if
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 351 highlights
DREAMWEAVER CS3 346 API Reference 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: .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 dw.cssStylePalette.getStyles() dw.cssStylePalette.getStyles(true) Result foo,test,world bar,hello dw.cssStylePalette.getStyles(false, true) dw.cssStylePalette.getStyles(true, true) p.foo,.test,div#hello p.world #bar,div#hello p.world Arguments {bGetIDs, bGetFullSelector} • The bGetIDs argument is optional. It is a Boolean value that, if true, causes the function to return just ID selector names (the part after the "#"). Defaults to false. • The bGetFullSelector argument is optional. It is a Boolean value that, if true, returns the complete selector string, instead of just the names. Defaults to false. Returns An array of strings that represent the names of all the class styles in the document. Example If the Styles panel is set up as shown in the following figure, a call to the dreamweaver.cssStylePalette.getStyles() function returns an array that contains these strings: "BreadcrumbEnd", "change", "doctitle", "heading", and "highlight":
![](/manual_guide/products/adobe-38040334-api-reference-b593776/351.png)