My almost finished site uses a standard colour scheme throughout. As part of the change to using dynamic .png images rather than .gifs I found that neither IE or Netscape seem to implement png transparency (alpha channel) correctly. I therefore needed to access the background colour of my pages. I found no obvious method of getting this. I implemented a standard_color dtml-method and modified the standard_header method to use it. It occurred to me that this could be more generally useful. Anyone implemented a better scheme, perhaps using TinyTable or is there some magical way to do this sort of thing. For the interested here're my methods. I use two page formats normal and nonstandard and in addition some pages don't have a body (no_body is defined) ie for setting up frames. [ Section: 1/1 File: standard_color UUencoded by: Turnpike Version 4.00 ] begin 644 standard_color M/&1T;6PM=6YL97-S(&,^#0H\9'1M;"UR86ES92!T>7!E/2)!<F=U;65N=$5R M<F]R(CX-"G-T86YD87)D7V-O;&]R(&YE961S(&$@8STG8V]L;W)N86UE)R!A M<F=U;65N=`T*/"]D=&UL+7)A:7-E/@T*/"]D=&UL+75N;&5S<SX-"CQD=&UL M+6EF(&YO;G-T86YD87)D/@T*/&1T;6PM:68@(F,]/2=T97AT)R(^(S`P,#`Y M.0T*/&1T;6PM96QI9B`B8ST])V)G)R(^(V9F9F9F9@T*/&1T;6PM96QI9B`B M8ST])VQI;FLG(CXC,#`X,#`P#0H\9'1M;"UE;&EF(")C/3TG=FQI;FLG(CXC M1D8V-C8V#0H\9'1M;"UE;&EF(")C/3TG86QI;FLG(CXC1D9&1D9H\9'1M M;"UE;'-E/@T*/&1T;6PM<F%I<V4@='EP93TB07)G=6UE;G1%<G)O<B(^#0IS M=&%N9&%R9%]C;VQO<B!C/3QD=&UL+79A<B!C/B!I<R!I;G9A;&ED+B!-=7-T M(&)E#0HG9F<G*"=T97AT)RDL("=B9R<L("=A;&EN:R<L("=V;&EN:R<@;W(@ M)VQI;FLG+@T*/"]D=&UL+7)A:7-E/@T*/"]D=&UL+6EF/@T*/&1T;6PM96QS M93X-"CQD=&UL+6EF(")C/3TG=&5X="<B/B-F9F9F9F8-"CQD=&UL+65L:68@ M(F,]/2=B9R<B/B,P,#`P.3D-"CQD=&UL+65L:68@(F,]/2=L:6YK)R(^(S8V M1D8V-@T*/&1T;6PM96QI9B`B8ST])W9L:6YK)R(^(T9&-C8V-@T*/&1T;6PM M96QI9B`B8ST])V%L:6YK)R(^(T9&1D9&1@T*/&1T;6PM96QS93X-"CQD=&UL M+7)A:7-E('1Y<&4](D%R9W5M96YT17)R;W(B/@T*<W1A;F1A<F1?8V]L;W(@ M8ST\9'1M;"UV87(@8SX@:7,@:6YV86QI9"X@375S="!B90T*)V9G)R@G=&5X M="<I+"`G8F<G+"`G86QI;FLG+"`G=FQI;FLG(&]R("=L:6YK)RX-"CPO9'1M B;"UR86ES93X-"CPO9'1M;"UI9CX-"CPO9'1M;"UI9CX-"@`` ` end sum -r/size 16251/1197 section (from "begin" to "end") sum -r/size 9550/844 entire input file [ Section: 1/1 File: standard_header UUencoded by: Turnpike Version 4.00 ] begin 644 standard_header M/$A434P^#0H\2$5!1#X-"CQ4251,13X\9'1M;"UV87(@=&ET;&5?;W)?:60^ M/"]4251,13X-"CPO2$5!1#X-"CQ4251,13X\9'1M;"UV87(@=&ET;&5?;W)? M:60^/"]4251,13X-"CQ35%E,12!465!%/2)T97AT+V-S<R(^#0H\+U-464Q% M/@T*/&1T;6PM=6YL97-S(&YO7V)O9'D^#0H\9'1M;"UI9B!N;VYS=&%N9&%R M9#X-"CQ"3T19('1E>'0]/&1T;6PM=F%R(")S=&%N9&%R9%]C;VQO<BAC/2=T M97AT)RQN;VYS=&%N9&%R9#TQ*2(^(&)G8V]L;W(]/&1T;6PM=F%R(")S=&%N M9&%R9%]C;VQO<BAC/2=B9R<L;F]N<W1A;F1A<F0],2DB/B!L:6YK/3QD=&UL M+79A<B`B<W1A;F1A<F1?8V]L;W(H8STG;&EN:R<L;F]N<W1A;F1A<F0],2DB M/B!V;&EN:ST\9'1M;"UV87(@(G-T86YD87)D7V-O;&]R*&,])W9L:6YK)RQN M;VYS=&%N9&%R9#TQ*2(^(&%L:6YK/3QD=&UL+79A<B`B<W1A;F1A<F1?8V]L M;W(H8STG86QI;FLG+&YO;G-T86YD87)D/3$I(CX^#0H\9'1M;"UE;'-E/@T* M/$)/1%D@=&5X=#T\9'1M;"UV87(@(G-T86YD87)D7V-O;&]R*&,])W1E>'0G M*2(^(&)G8V]L;W(]/&1T;6PM=F%R(")S=&%N9&%R9%]C;VQO<BAC/2=B9R<I M(CX@;&EN:ST\9'1M;"UV87(@(G-T86YD87)D7V-O;&]R*&,])VQI;FLG*2(^ M('9L:6YK/3QD=&UL+79A<B`B<W1A;F1A<F1?8V]L;W(H8STG=FQI;FLG*2(^ M(&%L:6YK/3QD=&UL+79A<B`B<W1A;F1A<F1?8V]L;W(H8STG86QI;FLG*2(^ ?/@T*/"]D=&UL+6EF/@T*/"]D=&UL+75N;&5S<SX-"@`` ` end sum -r/size 29412/1070 section (from "begin" to "end") sum -r/size 16223/751 entire input file -- Robin Becker
Robin Becker wrote:
My almost finished site uses a standard colour scheme throughout. As part of the change to using dynamic .png images rather than .gifs I found that neither IE or Netscape seem to implement png transparency (alpha channel) correctly. I therefore needed to access the background colour of my pages. I found no obvious method of getting this. I implemented a standard_color dtml-method and modified the standard_header method to use it. It occurred to me that this could be more generally useful.
Anyone implemented a better scheme, perhaps using TinyTable or is there some magical way to do this sort of thing.
Squishdot uses a properties tab with a bunch of entries for colors. Generalizing from that, it would seem that adding some string properties to your root folder containing color values would give you global control over page colors, and still let you overide them as neccesary. Michael Bernstein.
In article <37D578C3.A8DA02CA@profitscape.net>, Michael Bernstein <mbernstein@profitscape.net> writes
Robin Becker wrote:
My almost finished site uses a standard colour scheme throughout. As part of the change to using dynamic .png images rather than .gifs I found that neither IE or Netscape seem to implement png transparency (alpha channel) correctly. I therefore needed to access the background colour of my pages. I found no obvious method of getting this. I implemented a standard_color dtml-method and modified the standard_header method to use it. It occurred to me that this could be more generally useful.
Anyone implemented a better scheme, perhaps using TinyTable or is there some magical way to do this sort of thing.
Squishdot uses a properties tab with a bunch of entries for colors. Generalizing from that, it would seem that adding some string properties to your root folder containing color values would give you global control over page colors, and still let you overide them as neccesary.
Michael Bernstein. so you suggest just having properties
normal_text normal_bg normal_alink etc etc. sounds ok -- Robin Becker
Robin Becker wrote: ...
Squishdot uses a properties tab with a bunch of entries for colors. Generalizing from that, it would seem that adding some string properties to your root folder containing color values would give you global control over page colors, and still let you overide them as neccesary.
Michael Bernstein. so you suggest just having properties
normal_text normal_bg normal_alink
etc etc. sounds ok
Here is what I do on many of my sites, user discretion is advised, YMMV, etc.. :-) I tend to use CSS a lot. I create a /Styles Folder, where I use DTML Documents as my stylesheet (with names like 'Main_css' 'Doorway_css' etc.). In these I use dtml variables in place of defining colors, ie: p { color: <dtml-var MainTextColor>; } Then, I define folder properties at the root folder for the basic color scheme of the site. This technique also can take advantage of aquisition. On libc.org, users can set new colors by adding the appropriate variable. I am also extending it for fonts, etc. I am working on a HOW-TO that should be on the zope.org beta within the week. -- Bill Anderson
In article <37D5F548.88936648@libc.org>, Bill Anderson <bill.anderson@libc.org> writes
Robin Becker wrote: ...
Squishdot uses a properties tab with a bunch of entries for colors. Generalizing from that, it would seem that adding some string properties to your root folder containing color values would give you global control over page colors, and still let you overide them as neccesary.
Michael Bernstein. so you suggest just having properties
normal_text normal_bg normal_alink
etc etc. sounds ok
Here is what I do on many of my sites, user discretion is advised, YMMV, etc.. :-)
I tend to use CSS a lot. I create a /Styles Folder, where I use DTML Documents as my stylesheet (with names like 'Main_css' 'Doorway_css' etc.). In these I use dtml variables in place of defining colors, ie:
p { color: <dtml-var MainTextColor>; }
Then, I define folder properties at the root folder for the basic color scheme of the site. This technique also can take advantage of aquisition. On libc.org, users can set new colors by adding the appropriate variable. I am also extending it for fonts, etc. I am working on a HOW-TO that should be on the zope.org beta within the week.
-- Bill Anderson
... again sounds good. -- Robin Becker
Robin Becker wrote:
Squishdot uses a properties tab with a bunch of entries for colors. Generalizing from that, it would seem that adding some string properties to your root folder containing color values would give you global control over page colors, and still let you overide them as neccesary.
Michael Bernstein. so you suggest just having properties
normal_text normal_bg normal_alink
etc etc. sounds ok
Actually, I was thinking a little closer to color schemes: color_1 color_2 color_3 and then using the same color in different places: Page background is color_1 table cells with color_2 backgrounds use color_3 for text table cells with color_3 backgrounds use color_1 for text Etc. in various combinations according to your needs. Then you can change the color scheme of the entire page in a coordinated way, just by changing between 3 and 5 properties, instead of managing ten or more. HTH, Michael Bernstein.
In article <37D69549.B6DA8C5F@profitscape.net>, Michael Bernstein <mbernstein@profitscape.net> writes
Robin Becker wrote:
Squishdot uses a properties tab with a bunch of entries for colors. ...
Actually, I was thinking a little closer to color schemes:
color_1 color_2 color_3
and then using the same color in different places:
Page background is color_1 table cells with color_2 backgrounds use color_3 for text table cells with color_3 backgrounds use color_1 for text
Etc. in various combinations according to your needs. Then you can change the color scheme of the entire page in a coordinated way, just by changing between 3 and 5 properties, instead of managing ten or more. ... yes that's another way. I normally have some kind of colour reversals between border frames and the main frame -- Robin Becker
participants (3)
-
Bill Anderson -
Michael Bernstein -
Robin Becker