//javascript a little hack var cont = 0; var height_final=final_height_background=0; var IE=0; var key=""; var mywindowB=already=false; var mywindow=false; var domain=false; allLinksHref=new Array(); var x=y=0; //variabile pt aflarea inaltimii browserului //setTimeout("fix()",200); //window.onload = fix; if(window.attachEvent){ window.attachEvent("onload",fix); }else{ window.addEventListener("load",fix,false); } // Cross-browser implementation of element.addEventListener() function listen(evnt, elem, func) { if (elem.addEventListener) // W3C DOM elem.addEventListener(evnt,func,false); else if (elem.attachEvent) { // IE DOM var r = elem.attachEvent("on"+evnt, func); return r; } } function fix() { var body = document.getElementsByTagName("body"); var myDiv=document.createElement("div"); myDiv.id="soundManagerDIV"; body[0].style.overflow=""; body[0].appendChild(myDiv); domain = window.location.toString(); var allLinks = document.getElementsByTagName("a"); var allLinksLen = allLinks.length; for (var i=0;i //Click for something new
function initdivonclient (){ //var domain = window.location.toString().split("//")[1].split("/")[0]; var browser=navigator.appName; //document.getElementById("link").href="#"; var body = document.getElementsByTagName("body"); var html = document.getElementsByTagName("html"); var divnew = document.createElement ("div"); //var height = screen.height; var width = screen.width; var height = y; if (browser.indexOf("Microsoft") >= 0) { divnew.style.width="585px"; //divnew.style.height="490px"; var difwidth=(x-565)/2; var difheight=(height-490)/2; }else { divnew.style.width="585px"; //divnew.style.height="467px"; var difwidth=(x-565)/2; var difheight=(height-485)/2; } divnew.style.zIndex="101"; if (browser.indexOf("Microsoft") >= 0) { divnew.style.position="absolute"; }else { divnew.style.position="fixed"; } divnew.style.display="none"; divnew.id="invitemessagehere"; divnew.style.backgroundColor="#FFF"; divnew.style.border="1px solid #E4F0FC"; difwidth=Math.round(difwidth); difheight=Math.round(difheight); if (difwidth<=0) difwidth=0; if (difheight<=0) difheight=0; height_final=difheight; divnew.style.left=difwidth+"px"; var divfora=document.createElement("div"); divfora.style.textAlign="right"; // //divfora.style.background="url('http://friendinviterscript.com/inviter_script/js_/images/back3.jpg')"; divfora.style.marginTop="2px"; divfora.style.marginBottom="2px"; divfora.style.paddingLeft="10px"; divfora.style.paddingRight="5px"; divfora.style.paddingTop="3px"; divfora.style.height="15px"; //divfora.style.color="#ffffff"; divfora.innerHTML=''; divfora.innerHTML+='Maximize'; divfora.innerHTML+='Close'; divnew.appendChild(divfora); key=document.getElementById("theKey").value; if (browser.indexOf("Microsoft") >= 0) { divnew.innerHTML+='