-
Üyelik
30.09.2014
-
Yaş/Cinsiyet
34 / E
-
Meslek
Programcı
-
Konum
Aydın
-
Ad Soyad
S** T**
-
Mesajlar
10
-
Beğeniler
0 / 0
-
Ticaret
0, (%0)
Arkadaşlar aşağıda gördüğünüz msn popup kullanıyorum herşey sorunsuz çalışıyor fakat pop ölçülerini değiştirdiğimde bozuluyor,solda sabit reklam tarzında kullanmayı düşünüyorum nasıl yapabilirim?
// Generate Randowm Number
function GetRandom ()
{
var randomNumber = Math.floor ( Math.random() * 5 );
if ( randomNumber == 0 ) randomNumber = GetRandom();
return randomNumber;
}
var picLink = '/reklamalani.jpg';
document.getElementById('msnPopupImg').src = picLink;
//var popupWinoldonloadHndlr=window.onload, popupWinpopupHgt, popupWinactualHgt, popupWintmrId=-1, popupWinresetTimer;
var popupWincntDelta;
window.popupWinespopup_winLoad;
function popupWinespopup_ShowPopup(show)
{
if (popupWintmrId!=-1) return;
var ie=document.all && !window.opera
var dom=document.getElementById
iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
objref=(dom)? document.getElementById("popupWin") : document.all.popupWin
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
var docwidth=(ie)? iebody.clientWidth : window.innerWidth
docheight=(ie)? iebody.clientHeight: window.innerHeight
var objwidth=objref.offsetWidth
objheight=objref.offsetHeight
showonscrollvar=setInterval("staticfadebox()", 1)
el=document.getElementById('popupWin');
el.style.right='208px';
el.style.top='';
el.style.filter='';
if (navigator.userAgent.indexOf('Opera')!=-1)
el.style.bottom=(document.body.scrollHeight*1-document.body.scrollTop*1
-document.body.offsetHeight*1+1*popupWinpopupBottom)+'px';
popupWinactualHgt=0; el.style.height=popupWinactualHgt+'px';
el.style.visibility='';
if (!popupWinresetTimer) el.style.display='';
popupWintmrId=setInterval(popupWinespopup_tmrTimer,(popupWinresetTimer?1000:20));
}
function popupWinespopup_winLoad ()
{
if (popupWinoldonloadHndlr!=null) popupWinoldonloadHndlr();
elCnt=document.getElementById('popupWin_content')
el=document.getElementById('popupWin');
popupWinpopupBottom=el.style.bottom.substr(0,el.style.bottom.length-2);
popupWinpopupHgt=el.style.height;
popupWinpopupHgt=popupWinpopupHgt.substr(0,popupWinpopupHgt.length-2); popupWinactualHgt=0;
popupWincntDelta=popupWinpopupHgt-(elCnt.style.height.substr(0,elCnt.style.height.length-2));
popupWinresetTimer=true;
popupWinespopup_ShowPopup(null);
}
function popupWinespopup_tmrTimer()
{
el=document.getElementById('popupWin');
if (popupWinresetTimer)
{
el.style.display='';
clearInterval(popupWintmrId); popupWinresetTimer=false;
popupWintmrId=setInterval(popupWinespopup_tmrTimer,20);
}
popupWinactualHgt+=5;
if (popupWinactualHgt>=popupWinpopupHgt)
{
popupWinactualHgt=popupWinpopupHgt; clearInterval(popupWintmrId); popupWintmrId=-1;
document.getElementById('popupWin_content').style.display='';
}
if ((popupWinactualHgt-popupWincntDelta)>0)
{
elCnt=document.getElementById('popupWin_content')
elCnt.style.display='';
elCnt.style.height=(popupWinactualHgt-popupWincntDelta)+'px';
}
el.style.height=popupWinactualHgt+'px';
}
function staticfadebox() {
var ie=document.all && !window.opera
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
//objref.style.top=scroll_top+docheight/2-objheight/2+"px"
objref.style.top= (scroll_top + docheight) - objheight - 125 + "px";
}
//]]>
<script></script>