Wordpress Themes - Online Advertising - Debt Consolidation - Debt Consolidation - Wordpress Themes

PDA

View Full Version : Need to integrate some code in javascript


alexo
Dec 6th 2007, 4:01 am
Hello

i have static huge site and need to implement/put in <head> some code



as i have overlib.js in head, i decide to integrate this code in that js script ?

code which i must include is

<!------ BEGIN OAS SETUP ------>
<SCRIPT LANGUAGE=JavaScript><!--//configuration
OAS_url = 'http://ads.com/RealMedia/ads/';
OAS_sitepage = window.location.hostname + window.location.pathname;
if(OAS_sitepage.substring(0,7) == "http://"){
OAS_sitepage = OAS_sitepage.substring(7);
}
if(OAS_sitepage.substring(0,4) != "www."){
OAS_sitepage = "www." + OAS_sitepage;
}
OAS_listpos = 'Right_combo,';
OAS_query = '';
OAS_target = '_top';
//end of configuration
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos) {
document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript1.1>
<!--
OAS_version = 11;
if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1))
OAS_version = 10;
if (OAS_version >= 11)
document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>');
//-->
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript>
<!--
document.write('');
function OAS_AD(pos) {
if (OAS_version >= 11)
OAS_RICH(pos);
else
OAS_NORMAL(pos);
}
//-->
</SCRIPT>
<!------ END OAS SETUP ------>

Need advice how can i include this code?

i try to delete

</SCRIPT>
<SCRIPT LANGUAGE=JavaScript>
<!--
//-->
//-->
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript1.1>
<!--

and include, but script don't work.

can u correct me, what i'm doing wrong, and is there any solution how can i do it properly ?

I would like to see if I can get some help here. T

hrcerqueira
Dec 6th 2007, 7:53 am
How did you tried to include the code?

alexo
Dec 6th 2007, 8:16 am
remove all tags starting this < and ending with > and put under code in 1 js file (overlib.js)

result
1. overlib work
2. the 2-nd script don't work