[Pmwiki-users] (:noleft:) layout questions
Patrick R. Michaud
pmichaud
Wed Dec 22 15:52:57 CST 2004
On Wed, Dec 22, 2004 at 04:58:40PM -0500, Tom Holroyd wrote:
> I'm using
>
> if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') == false) {
> $HTMLHeaderFmt['norm'] = "<style type=\"text/css\">\n" .
> "@import url(\$SkinDirUrl/myskin.css);\n</style>\n";
> } else {
> $HTMLHeaderFmt['ie'] = "<style type=\"text/css\">\n" .
> "@import url(\$SkinDirUrl/ie.css);\n</style>\n";
> }
Just for the record, a slightly shorter version of the above might be:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') == false) {
$HTMLStylesFmt['norm'] = "@import url(\$SkinDirUrl/myskin.css);\n";
} else {
$HTMLStylesFmt['ie'] = "@import url(\$SkinDirUrl/ie.css);\n";
}
Entries in $HTMLStylesFmt[] are automatically placed into the header
inside of <style ...> ... </style> tags.
> I'm thinking of having the ie.css skin paint big red warning
> banners across the background, and redirect the user to the
> Firefox installation page.... :-)
Try it subliminally. Put a very faint "Get Firefox" image in the background,
and fix the <body> tag so that a click anywhere that isn't otherwise a
hotspot takes you to Firefox... :-) :-)
Pm
More information about the pmwiki-users
mailing list