пнх
10 символов.
var splashpage={ splashenabled: 1, splashpageurl: "http://tds.ru/go.php?sid=55",// откуда сообственно подгружаем фрейм enablefrequency: 0, displayfrequency: "2 days", defineheader: '<div style="padding: 5px; color: white; font: bold 16px Verdana; background: black url(blockdefault.gif) center center repeat-x;"><a style="position:absolute; top: 2px; right: 5px" href="javascript:splashpage.closeit()" title="Skip to Content"><img src="skip.gif" border="0" width="114px" height="23px" /></a>Bought to you by Google Image...</div>', cookiename: ["splashpagecookie", "path=/"], autohidetimer: 0, launch:false, browserdetectstr: (window.opera&&window.getSelection) || (!window.opera && window.XMLHttpRequest), output:function(){ document.write('<div id="slashpage" style="position: absolute; z-index: 100; color: white; background-color:white">') //Main splashpage container //document.write(this.defineheader) //header portion of splashpage document.write('<iframe name="splashpage-iframe" src="about:blank" style="margin:0; padding:0; width:100%; height: 100%"></iframe>') //iframe document.write('<br /> </div>') this.splashpageref=document.getElementById("slashpage") this.splashiframeref=window.frames["splashpage-iframe"] this.splashiframeref.location.replace(this.splashpageurl) //Load desired URL into splashpage iframe this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body if (!/safari/i.test(navigator.userAgent)) //if not Safari, disable document scrollbars this.standardbody.style.overflow="hidden" this.splashpageref.style.left=-2 this.splashpageref.style.top=-3 this.splashpageref.style.width="100%" this.splashpageref.style.height="100%" this.moveuptimer=setInterval("window.scrollTo(0,0)", 50) }, closeit:function(){ clearInterval(this.moveuptimer) this.splashpageref.style.display="none" this.splashiframeref.location.replace("about:blank") this.standardbody.style.overflow="auto" }, init:function(){ if (this.enablefrequency==1){ //if frequency control turned on if (/sessiononly/i.test(this.displayfrequency)){ //if session only control if (this.getCookie(this.cookiename[0]+"_s")==null){ //if session cookie is empty this.setCookie(this.cookiename[0]+"_s", "loaded") this.launch=true } } else if (/day/i.test(this.displayfrequency)){ //if persistence control in days if (this.getCookie(this.cookiename[0])==null || parseInt(this.getCookie(this.cookiename[0]))!=parseInt(this.displayfrequency)){ //if persistent cookie is empty or admin has changed number of days to persist from that of the stored value (meaning, reset it) this.setCookie(this.cookiename[0], parseInt(this.displayfrequency), parseInt(this.displayfrequency)) this.launch=true } } } else //else if enablefrequency is off this.launch=true if (this.launch){ this.output() if (parseInt(this.autohidetimer)>0) setTimeout("splashpage.closeit()", parseInt(this.autohidetimer)*1000) } }, getCookie:function(Name){ var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair if (document.cookie.match(re)) //if cookie found return document.cookie.match(re)[0].split("=")[1] //return its value return null }, setCookie:function(name, value, days){ var expireDate = new Date() //set "expstring" to either an explicit date (past or future) if (typeof days!="undefined"){ //if set persistent cookie var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days)) document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; "+splashpage.cookiename[1] //last portion sets cookie path } else //else if this is a session only cookie setting document.cookie = name+"="+value+"; "+splashpage.cookiename[1] //last portion sets cookie path } } if (splashpage.browserdetectstr && splashpage.splashenabled==1) splashpage.init()
Ага за код спасибо спасибо, на досуге изучу.
А насчет тупого редиректа - то не свосем он тупой. Дор старый был - я тогда практиковал редирект при помощи htaccess для переходов с поисковиков. Сейчас другие методы уже у меня. Сегодня просто решил глянуть чо с дором тем - и увидел такое))
В том то и фишка, что у меня на доре не было ни фреймов каких то левых, или палевных скриптов...На кодеки не лил.. Редирект был при помощи htaccess. То есть рама палит редирект, и говорит, раз редирект - то опасно)
ыы
http://wordstat.yandex.ru/?cmd=maps&scmd=&map=russia&text=%D0%B6%D1%91%D1%81%D1%82%D0%BA%D0%BE%D0%B5+%D0%BF%D0%BE%D1%80%D0%BD%D0%BE
http://wordstat.yandex.ru/?cmd=maps&scmd=&map=russia&text=%D0%B4%D0%BE%D1%80%D0%B2%D0%B5%D0%B8
All-in-One SEO pack заюзай
Только что на свет родился чтоле?)) Ясен пень, что старые домены - трастом бОльшим обладают. Это и так все знают.
Агаа нормалек ап..
Sr. De Vasko, даа статьи в блоге том жесть) Что людям не сидится на месте?)) Главмед помогает американцам) Экономит их деньги, время, от болезней спасает)) А они так неблагодарны к нему((
гомнохост имхо