Changing color in text delivered by external html

liunx

Guest
I am using a style sheet to style the output of an external html-script, but i want to be able to make certain changes.
The script produces an event calendar from another website (as a feature, allowed by this website), and it works alright.
The changes i want to make:
a) If an event contains the word "Cancelled" (or similar) that special word is written in red.
b) The width of the calendar should be set to 120 pt.
c) If an event contains a certain word, that event is excluded from the calendar. Or only events containing a certain word is included.
I dont know if this is possible with CSS (being a newbie), and i have asked a similar question in the Javascript-Forum.

Regards

T

<STYLE><!--
.textblue {color: #0000cc; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textblue a {color: #0000cc}
.textred {color: #990000; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textwhite {color: #ffffff; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textwhite a {color: #ffffff}
.textsmallblue {color: #0000cc; font-family: Tahoma; font-size: 8pt}
.textlargeblue {color: #0000cc; font-family: Tahoma; font-weight: bold; font-size: 8pt}
.subtabheader {color: #ffffff; font-family: Tahoma; font-size: 8pt; margin-right: 2px; padding: 3px}
.frame {border: 0px solid #cccccc; background-color: #cccccc; padding: 0px}
--></STYLE>

<SCRIPT></SCRIPT>

<SCRIPT src=http://www.webdeveloper.com/forum/archive/index.php/"http://www.groupcare.dk/da/comp/events.asp?groupid=486073&days=7" var></SCRIPT>To achieve formatting or events included based on certain words you would have to use a scripting language such as PHP, Perl, ASP, or JavaScript.

The script would have to read the data being sent to it from the website, and then modify the so that events with say "Cancelled" in them is encased with <span style=color:red> or something to that effect.

CSS formats text and elements, it does not however, actually read/parse the text/data.I was afraid that was the case, and I have moved my question to Javascript (only programming language available to me).
 
Back
Top