Log in

View Full Version : http://www.ExitJunction.com



molendijk
10-21-2010, 10:36 AM
Hello,
The hosting site http://freei.me puts the following on each site of the pages they host, immediately before the closing html-tag.

</noscript>
<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<!-- Begin ExitJunction.com Code -->
<script type="text/javascript">
try{
var ej10803=document.createElement("script");
ej10803.type="text/javascript";
ej10803.src="http://www.ExitJunction.com/script/script.jsp?val=10803&amp;sver=2";
var ej210803=document.getElementsByTagName("body")[0];
ej210803.insertBefore(ej10803, ej210803.firstChild);
}catch (e10803){}
</script>
<!-- Copyright by ExitJunction.com -->
</div></div>
This makes the pages invalid, but that's no problem as long as everything works fine. My question is: what does this code really do, apart from loading http://www.ExitJunction.com and making you a rich man?
Thanks,
Arie Molendijk.

djr33
10-21-2010, 01:55 PM
My impression is that the code you posted loads the script at the SRC (on the exitjunction site). So it's just a complex way of inserting a <script> tag, probably because it's too hard to parse the html to insert it in the correct position using a serverside code, but DOM works easily.

But the script isn't loading for me (at the moment), so I'm not sure what it does. It could be anything that JS can do...

molendijk
10-21-2010, 02:32 PM
...I'm not sure what it does. It could be anything that JS can do...
Yes, that's why it scares me a bit.
===
Arie.