[Zope] changing standard colours
Robin Becker
robin@jessikat.demon.co.uk
Mon, 6 Sep 1999 12:54:14 +0100
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&1D9�H\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