I have some code here that might help.
variables.searchWordCollection = listToArray( url.search, " " );
variables.title = htmlEditFormat( rsClassified.title );
variables.description = rsClassified.description;
for ( i = 1; i lte arrayLen( variables.searchWordCollection ); i = i + 1
) {
variables.title = reReplaceNoCase( variables.title,
"(\b#variables.searchWordCollection[ i ]#\b)", "<span>\1</span>", "all" );
variables.description = reReplaceNoCase( variables.description,
"(\b#variables.searchWordCollection[ i ]#\b)", "<span>\1</span>", "all" );
}
In your CSS you make a rule that span tags between <p> tags should be
highlighted. Let me know if you need help with that.
--
*** http://www.clickfind.com.au
The new Australian search engine for businesses, products and services
*** Virtual and Dedicated Servers with MS SQL from $250 a month
*** Virtual and Dedicated Servers with registered version of ColdFusion from
$350 a month
*** ColdFusion licenses at the lowest price
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---