View Single Post
Old 07-08-2011, 10:50 PM   PM User | #1
holm
New to the CF scene

 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
holm is an unknown quantity at this point
Question Seach for pre-defined html string and add code before and after this html string.

Hello...


I'm looking for a javascript "hack" there can find a pre-defined html-string, lets say:

Code:
<img src='/images/adserving/images/bestil.gif' border='0' alt=''>
and add:

Code:
<script>utmx_section("Indsæt afsnitsnavnet her")</script>
in just before the pre-defined html-string. And the following code just after:

Code:
</noscript>
So it looks like this:

Code:
<script>utmx_section("Indsæt afsnitsnavnet her")</script><img src='/images/adserving/images/bestil.gif' border='0' alt=''></noscript>

The reason behind this is that i'm using a editor that do not allows me to directly changing the code of my website. Only possible to add code in the header and in the buttom of the page (in the body). Its for for making a multivariate split-test using Google Website Optimizer.

Thanks in advance!

- Anders
holm is offline   Reply With Quote