RonB
|
| Posted: 08/06/2002, 7:55 AM |
|
I've tried to use the example on gotocode and the translation came out as
follows:
//Custom Code @46-2A29BDB7
// -------------------------
global $griftberichten;
if (CCGetParam("text","") != "" )
{
$string_to_split = CCGetParam("text","");
$tok = split(" ", $string_to_split);
$size = sizeof($tok);
for ($i = 0; $i < $size; $i++)
$griftberichten->Griftb_text->setvalue(str_replace($tok[$i], "<font
color=#FF3366 font size=5><u><cite>". $tok[$i] ."</font></u></cite>",
$griftberichten->Griftb_text->Value);
}
// -------------------------
//End Custom Code
} //Close griftberichten_Griftb_text_BeforeShow @9-FCB6E20C
It doesn't work 
Anybody any idea's why?
RonB
|
|
|
 |
DonB
|
| Posted: 08/06/2002, 11:02 AM |
|
If I read this right, it's supposed to parse a space-delimited string and
change font size/color on each word.
I am guessing you don't see the font size/color changes in the final,
rendered page. Try commenting out the link to the stylesheet in your page
and see if it will work.
Or is there an actual compile/execute error occurring? Was this taken from
a CC2 or CCS example?
DonB
"RonB" <r.borkent@chello123.nl> wrote in message
news:aioo09$np4$1@news.codecharge.com...
> I've tried to use the example on gotocode and the translation came out as
> follows:
>
> //Custom Code @46-2A29BDB7
> // -------------------------
> global $griftberichten;
>
> if (CCGetParam("text","") != "" )
> {
> $string_to_split = CCGetParam("text","");
> $tok = split(" ", $string_to_split);
> $size = sizeof($tok);
> for ($i = 0; $i < $size; $i++)
> $griftberichten->Griftb_text->setvalue(str_replace($tok[$i], "<font
> color=#FF3366 font size=5><u><cite>". $tok[$i] ."</font></u></cite>",
> $griftberichten->Griftb_text->Value);
> }
>
> // -------------------------
> //End Custom Code
>
> } //Close griftberichten_Griftb_text_BeforeShow @9-FCB6E20C
>
> It doesn't work 
> Anybody any idea's why?
>
> RonB
>
>
|
|
|
 |
RonB
|
| Posted: 08/06/2002, 11:09 AM |
|
The original was for CC and was posted on gotocode by someone. I tried to
work it over to CCS. No errors just no highlighting. I'll see if it's the
stylesheet.
Thanx,
RonB
"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> schreef in bericht
news:aip2v9$c8r$1@news.codecharge.com...
> If I read this right, it's supposed to parse a space-delimited string and
> change font size/color on each word.
>
> I am guessing you don't see the font size/color changes in the final,
> rendered page. Try commenting out the link to the stylesheet in your
page
> and see if it will work.
>
> Or is there an actual compile/execute error occurring? Was this taken
from
> a CC2 or CCS example?
>
> DonB
>
> "RonB" <r.borkent@chello123.nl> wrote in message
>news:aioo09$np4$1@news.codecharge.com...
> > I've tried to use the example on gotocode and the translation came out
as
> > follows:
> >
> > //Custom Code @46-2A29BDB7
> > // -------------------------
> > global $griftberichten;
> >
> > if (CCGetParam("text","") != "" )
> > {
> > $string_to_split = CCGetParam("text","");
> > $tok = split(" ", $string_to_split);
> > $size = sizeof($tok);
> > for ($i = 0; $i < $size; $i++)
> > $griftberichten->Griftb_text->setvalue(str_replace($tok[$i], "<font
> > color=#FF3366 font size=5><u><cite>". $tok[$i] ."</font></u></cite>",
> > $griftberichten->Griftb_text->Value);
> > }
> >
> > // -------------------------
> > //End Custom Code
> >
> > } //Close griftberichten_Griftb_text_BeforeShow @9-FCB6E20C
> >
> > It doesn't work 
> > Anybody any idea's why?
> >
> > RonB
> >
> >
>
>
|
|
|
 |
|