var nufa_set={ site:0, size:'' }; if(location.href && nufa_set.site && nufa_set.size && navigator.userAgent && window.innerWidth && window.innerHeight){ //--Creating Unique Value var rand=Math.round(Math.random()*1000000); //--Ads Size Define var size_ar = nufa_set.size.split("x"); //--Creating Vertual Form & Setup It var form = document.createElement("form"); form.setAttribute("action", "http://ad"+(rand%4+1)+".nufa-ad.com/disp.php"); //ad1, ad2, ad3, ad4 form.setAttribute("method", "POST"); form.setAttribute("target", "tgt_"+rand); //--Creating Form Fields & Append on Form var inp0 = document.createElement("input"); inp0.setAttribute("type", "hidden"); inp0.setAttribute("name", "url"); inp0.setAttribute("value", location.href); form.appendChild(inp0); var inp1 = document.createElement("input"); inp1.setAttribute("type", "hidden"); inp1.setAttribute("name", "site"); inp1.setAttribute("value", nufa_set.site); form.appendChild(inp1); var inp2 = document.createElement("input"); inp2.setAttribute("type", "hidden"); inp2.setAttribute("name", "size"); inp2.setAttribute("value", nufa_set.size); form.appendChild(inp2); var inp3 = document.createElement("input"); inp3.setAttribute("type", "hidden"); inp3.setAttribute("name", "userAgent"); inp3.setAttribute("value", navigator.userAgent); form.appendChild(inp3); var inp4 = document.createElement("input"); inp4.setAttribute("type", "hidden"); inp4.setAttribute("name", "width"); inp4.setAttribute("value", window.innerWidth); form.appendChild(inp4); var inp5 = document.createElement("input"); inp5.setAttribute("type", "hidden"); inp5.setAttribute("name", "height"); inp5.setAttribute("value", window.innerHeight); form.appendChild(inp5); var inp6 = document.createElement("input"); inp6.setAttribute("type", "hidden"); inp6.setAttribute("name", "rand"); inp6.setAttribute("value", rand); form.appendChild(inp6); //--Creating Iframe document.write(""); document.getElementById('x').appendChild(form); //--Submitting Vertual Form form.submit(); }