Posted by Disco Octopus on 10/25/05 04:13
Luigi Donatello Asero wrote:
> "Disco Octopus" <discooctopus@yahoo.com> skrev i meddelandet
> news:1hel3rjesj3eo.1o8jvkpi6yp1l$.dlg@40tude.net...
>> Luigi Donatello Asero wrote:
>>
>>> P:first-line { text-transform: uppercase }
>>
>> <html>
>> <head>
>> <style type="text/css">
>> p:first-line { text-transform: uppercase }
>> p .notouch { text-transform: none }
>> </style>
>> </head>
>> <body>
>> <p>Auf dieser Internetseite gibt das Einzelunternehmen (enskild firma)
>> <span class="notouch">Scaiecat Spa Gigi</span> Auskünfte über Sizilien.
>
> It works but I have to look for all the words on each page.
> Could I let php search for the words automatically and insert them in a
> <span class>?
> Or perhaps write a rule which is valid just for those words?
I would do this php.
somethign like this???
<?php
$mytText = "Auf dieser Internetseite gibt das Einzelunternehmen
(enskild firma)Scaiecat Spa Gigi Auskünfte über Sizilien. Auf dieser
Internetseite gibt das ";
$startthing = "<span class=\"notouch\">";
$endthing = "</span>";
$phrases[0]="Scaiecat Spa Gigi";
$phrases[1]="Do Not Uppercase This";
$phrases[2]="Ralph Malph";
echo "before : $mytText <br>\n";
reset($phrases);
while (list($key, $findText) = each($phrases)) {
$mytText = str_replace($findText, $startthing . $findText .
$endthing, $mytText);
}
echo "after : $mytText <br>\n";
?>
--
the beef jerky team : http://www.choicebeefjerky.com.au/distributors.html
not a beef jerky web site : http://mycoolfish.com/vote.cmks
freeball
Navigation:
[Reply to this message]
|