Documentation

Modify space codes for companion spaces and competitive campaigns

Introduction

This document explains how to modify the site's HTML code in order to use the option competitive campaigns and companion spaces using spaces codes (Javascript).

This modification makes the random number generate once per page. Each tag uses the random number within all the tags, so that all tags are reached by e-planning with the same random number id.

Amend to this:

Inside the <head> the page must include the code:

<script language="Javascript">
<!--
var epl_rnd =(new String(Math.random())).substring(2,8) + (((new Date()).getTime()) & 262143);
// -->
</script>

The line var rnd =(new String(Math.random())).substring(2,8) + (((new Date()).getTime()) & 262143); must be removed from each html code of site space and where it says "+ rnd" must be replaced with "+ epl_rnd".

The name change is if there is another script that uses the variable "rnd".

Therefore, the code would be as follows:

<html>
<head>
<script language="Javascript">
<!--
var epl_rnd =(new String(Math.random())).substring(2,8) + (((new Date()).getTime()) & 262143);
// -->
</script>
</head>

<body>

<!-- e-planning v3 - Comienzo espacio Sitio _ Seccion _ Espacio-->
<script type="text/javascript" language="JavaScript1.1">
<!--
document.write('<scri' + 'pt language="JavaScript1.1" type="text/javascript" src="http://ads.e-planning.net/eb/3/4b66/5ae94608d13e8f17?o=j&rnd=' + epl_rnd + '&crs=' + cs +'"></scr' + 'ipt>');
// -->
</script>
<noscript><a
href="http://ads.e-planning.net/ei/3/4b66/5ae94608d13e8f17?it=i&rnd=$RANDOM" target="_blank"><img alt="e-planning.net ad" src="http://ads.e-planning.net/eb/3/4b66/5ae94608d13e8f17?o=i&rnd=$RANDOM" border=0></a></noscript>
<!-- e-planning v3 - Fin espacio Sitio _ Seccion _ Espacio --->

<!-- e-planning v3 - Comienzo espacio Sitio _ Seccion _ Espacio2 -->
<script type="text/javascript" language="JavaScript1.1">
<!--
document.write('<scri' + 'pt language="JavaScript1.1" type="text/javascript" src="http://ads.e-planning.net/eb/3/4b66/8d7541b78a39cf4f?o=j&rnd=' + epl_rnd + '&crs=' + cs +'"></scr' + 'ipt>');
// -->
</script>
<noscript><a
href="http://ads.e-planning.net/ei/3/4b66/8d7541b78a39cf4f?it=i&rnd=$RANDOM" target="_blank"><img alt="e-planning.net ad" src="http://ads.e-planning.net/eb/3/4b66/8d7541b78a39cf4f?o=i&rnd=$RANDOM" border=0></a></noscript>
<!-- e-planning v3 - Fin espacio Sitio _ Seccion _ Espacio2 -->

</body>
</html>

» MORE INFORMATION

   ©1998-2015 Caraytech S.A. All rights reserved.