You are here: Re: Question in regards to a defining a css class « HTML « IT news, forums, messages
Re: Question in regards to a defining a css class

Posted by Adrienne Boswell on 11/23/17 11:44

Gazing into my crystal ball I observed dorayme
<doraymeRidThis@optusnet.com.au> writing in
news:doraymeRidThis-A7B162.09044429032006@news-vip.optusnet.com.au:

> In article <Xns9793EF47C3DDCarbpenyahoocom@69.28.186.121>,
> Adrienne Boswell <arbpen2003@sbcglobal.net> wrote:
>
>> A site I am developing uses liturgical colors: white, red, violet,
>> rose, and green. I have a main stylesheet that has the non-color
>> properties, size, font, position, etc., and then the color stylesheets
>> depending on the day's liturgical color. If the liturical color of
>> the day is violet, then the violet stylesheet is applied that uses
>> various shades of purple.
>
> This sounds very sensible, you won't mind if I utilise this idea?
> It is a neat way to present drafts for website customers to show
> them alternative colour schemes.
>

I would be honored. Here's what I do (ASP example)

<link rel="stylesheet" href="style.css" type="text/css" title="Main
Stylesheet">
<% dim sheet
if session("sheet") = "" then
if request.querystring("color") <> "" then
sheet = request.querystring("color")
session("sheet") = sheet
else
sheet = "green" 'default color
end if
else
sheet = session("sheet")
end if
%>
<link rel="stylesheet" href="<%=sheet%>.css" type="text/css" title="<%
=sheet%>">

Then further on the page somewhere in an include
<ul>
<li><a href="<%=request.servervariables("script_name")%>?color=red">Red</a>
</li>



--
Adrienne Boswell
Please respond to the group so others can share
http://www.cavalcade-of-coding.info

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация