#documented extra.dm macro file for Greenstone CSS/style demo collection package Style # we override the default cssheader macro here so we don't get the # hard-coded background images. This is the place to make your customisations # This collection has a copy of the default CSS in _httpcstyle_ # (_httpcollection_/style) instead of _httpimages_ _cssheader_ { } #### extra code to allow changing stylesheet # extra javascript, for our demo toggle buttons # go through all styles and disable them all except the wanted one # For some reason, this macro overrides the _query:pagescriptextra_ even # though it's for the Style package only, so we need a defined initialize() # function or else we get a javascript error. _pagescriptextra_ { function SetStyle(stylename) \{ var body = document.getElementsByTagName('body')[0]; body.style.backgroundImage = ""; styles = document.styleSheets; var i; for (i=0;i} # override the default navigation bar to add demo style toggle buttons _optnavigationbar_ {

Choose a style: Default Greenstone, Blue, Red, Printer, None

} #### some text strings #_choosestyle_ "Choose a style" #_choosestyle_ [l=fr] "choisissez un style"