> Thanks.  I really dont want to dynamically add cfif statements to
> all hrefs
> within the text block and then write that to the database, I'd rather keep
> it straight html.  The problem is that these text blocks would be
> set up by
> non-technical users which is the same reason I can't have them add the
> onclick event to their links.

Have you tried doing a regular replace?  Perhaps something like:

<cfif NOT Find("mydomain.com", lcase(trim(CGI.HTTP_Host)))>
  BodyContent = Replace(BodyContent, "<a ", "<a
onClick='javascript:PopAd();' ", "ALL")
</cfif>

I don't know what the performace issues with this might be, but it's worth
trying.

Hatton


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to