Merhaba arkadaşlar, www.skdturkiye.org sitesine yaklaşan etkinliğimizi popup şeklinde resmini koydum. 10 saniye sonra kendiliğinden kapanıyor. Ancak sitedeki diğer hangi sayfaya girilirse girilsin popup yeniden çıkıyor. Bunu sadece ana sayfa için nasıl yapabiliriz? Site aspx olarak kodlandığı için Main. master 'da bulunan kodlar kısmına hazırladığım kodu yapıştırıyorum. Kullandığım popup kodu; <!-- Kodbank pop up Reklam Kodu basla--><div id="fadeinbox" style="filter: progid:DXImageTransform. Microsoft. RandomDissolve(duration=1) progid:DXImageTransform. Microsoft. Shadow(color=grey, direction=135); -moz-opacity: 0"><b><center><!-- BASLA: Reklam Kodu --><a href="http://tinypic.com?ref=fodj14" target="_blank"><img src="http://i62.tinypic.com/fodj14. jpg" width="800" height="534" border="0" alt="Image and video hosting by TinyPic"></a><!-- BİTİŞ: Reklam Kodu --></center></b><div align="right"><font color="#cccccc"><center>Duyuru 10 saniye sonra kapanacaktir.</center><a class="gensmall" onclick="hidefadebox ;return false" href="#"><span style="color: #c0c0c0"></span></a></font></div><style type="text/css"> <!-- #fadeinbox //--> </style><! REKLAM KODU ><script type="text/javascript"> <!-- //Specify display mode. 3 possible values are: //1) "always"- This makes the fade-in box load each time the page is displayed //2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session //3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer... // For example, 2 would display the box about (1/2) 50% of the time the page loads. var displaymode="always" //var displaymode="always" var enablefade="yes" // var autohidebox= //Automatically hide box after x seconds? var showonscroll="yes" //Should box remain visible even when user scrolls page? var IEfadelength=1 //fade in duration for IE, in seconds var Mozfadedegree=0.05 //fade in degree for NS6+ (number between 0 and 1. Recommended max: 0.2) ////////No need to edit beyond here/////////// if (parseInt !=NaN) var random_num=Math. floor(Math. random displaymode) function displayfadeinbox { var ie=document. all && ! window. opera var dom=document. getElementById iebody=(document.compatMode "CSS1Compat")? document. documentElement : document. body objref= ? document. getElementById : document. all. fadeinbox var scroll_top= ? iebody. scrollTop : window. pageYOffset var docwidth= ? iebody. clientWidth : window. innerWidth docheight= ? iebody. clientHeight: window. innerHeight var objwidth=objref. offsetWidth objheight=objref. offsetHeight objref. style. left=docwidth/2-objwidth/2+"px" objref. style. top=scroll_top+docheight/2-objheight/2+"px" if showonscrollvar=setInterval("staticfadebox ", 50) if objref. style. visibility="visible" if { if mozfadevar=setInterval("mozfadefx ", 90) else } else controlledhidebox } function mozfadefx { if (parseFloat <1) objref. style. MozOpacity=parseFloat +Mozfadedegree else } function staticfadebox function hidefadebox function controlledhidebox { if (autohidebox "yes") } function initfunction function get_cookie { var search = Name + "=" var returnvalue = "" if (document. cookie. length > 0) { offset = document. cookie. indexOf if (offset!= -1) } return returnvalue; } if (displaymode "oncepersession" && get_cookie "" || displaymode "always" || parseInt !=NaN && random_num 0) //--> </script></div><!-- Kodbank pop up Reklam Kodu bitir--> Cagito ergo sum.