Date: 05/17/01
- Next message: Thomas Schneider: "[phplib] Re: R: [phplib] Re: Templates & css style sheets"
- Previous message: Jeffrey Wang: "[phplib] Got error after upgraded php3.0.8 to php4.05"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----Oprindelig meddelelse-----
Fra: Thomas Schneider <tomacek <email protected>>
>if(document.all)
>{
> document.writeln('<link rel=stylesheet type="text/css"
>href="../admin_ie.css">');
>}else
> document.writeln('<link rel=stylesheet type="text/css"
>href="../admin.css">');
Why not let php detect IE? (check for "msie" in $HTTP_USER_AGENT)
><style type="text/css">
><!--
> all.layer{ font-family:Arial; font-size:9pt; color:#A0A0A0; }
>-->
></style>
If the template parser doesn't like '{' and '}', you could let it put them there itself:
all.layer{LBrace} font-family:Arial; font-size:9pt; color:#A0A0A0; {RBrace}
and
$tpl->set_var( array( "LBrace" => "{", "RBrace" => "}" ));
Or, (*looking again*...) HEY! What do you mean by "all.layer"? It looks like you are thinking javascript, but you are actually defining style for a hypothetical html tag: <all class="layer">. This, of course, makes no sense.
-- Klaus.
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Thomas Schneider: "[phplib] Re: R: [phplib] Re: Templates & css style sheets"
- Previous message: Jeffrey Wang: "[phplib] Got error after upgraded php3.0.8 to php4.05"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

