Просмотр полной версии : Cкрипты которые будут полезны начинающим дорвеестроителям
Вычитал с одного форума об этом скрипте.Что он делает: выдирает поисковый запрос, по которому посетитель пришел на ваш дор и подставляет его в виде “q=?key” в урл, ведущий на фид. Следовательно по какому запросу посетитель пришел на ваш дор, по такому же он и отправится на фид.
function f(){
var r=document.referrer,t="",q;
if(r.indexOf("google.")!=-1)t="q";
if(r.indexOf("msn.")!=-1)t="q";
if(r.indexOf("live.")!=-1)t="q";
if(r.indexOf("yahoo.")!=-1)t="p";
if(r.indexOf("altavista.")!=-1)t="q";
if(r.indexOf("aol.")!=-1)t="query";
if(r.indexOf("ask.")!=-1)t="q";
if(r.indexOf("eureka.com.")!=-1)t="q";
if(r.indexOf("lycos.com.")!=-1)t="query";
if(r.indexOf("hotbot.com.")!=-1)t="MT";
if(r.indexOf("infoseek.com.")!=-1)t="qt";
if(r.indexOf("webcrawler.")!=-1)t="searchText";
if(r.indexOf("excite.")!=-1)t="search";
if(r.indexOf("netscape.com.")!=-1)t="search";
if(r.indexOf("mamma.com.")!=-1)t="query";
if(r.indexOf("alltheweb.com.")!=-1)t="query";
if(r.indexOf("northernlight.com.")!=-1)t="qr";
if(t.length&&((q=r.indexOf("?"+t+"="))!=-1||(q=r.indexOf("&"+t+"="))!=-1))
{
window.location="http://myfeed.info/search.php?q="+r.substring(q+2+t.length).split("&")[0];
}
else //если пользователь не с поисковика то...
{
var so="[key_main]";
window.location="http://myfeed.info/search.php?q="+so;
}
}
window.onFocus = f()
Вопрос к тем кто отлично знает РНР,куда всталять кеи и редирект, между какими тегами в "index.htm..",ну и очевидно оцените его на работу?!
window.location="http://myfeed.info/search.php
вот же в нем редирект, только убогий
много плохих рефов будет из-за ие7
к тому же все поисковые боты будут уходить по нему пылесосом, а они по ходу должны по дору шариться
q=r.indexOf("&"+t+"="))!=-1
а тут кей
попробуй вызывать его между тегами боди
как-то так:
<script src="http://urlgdelegit.com/etotscript.js" type="text/javascript"></script>
lovelyl24
09.09.2010, 17:57
NFL's perspective baffles Ward
,Jamarcus Russell jersey (http://www.googlejersey.com/nfl-jerseys/oakland-raiders-jerseys/oakland-raiders-2-jamarcus-russell-jersey-in-black-p-7846.html)
Steelers receiver Hines Ward said it's no secret that the Baltimore Ravens put a bounty on him several years ago.martin tevaseu height:6-2 weight:325 age:22 college:nevada-las vegas experience:r team:new york jets martin tevaseu (dt/6-1/310/nevada-las vegas/boonville,MARK DUPER Jersey (http://www.googlejersey.com/nfl-jerseys/miami-dolphins-jerseys/miami-dolphins-85-mark-duper-throwback-jersey-green-p-7672.html), ca) was before marked as an undrafted free agency by the cleveland browns on may 17,JIM PLUNKETT jersey (http://www.googlejersey.com/nfl-jerseys/oakland-raiders-jerseys/oakland-raiders-16-jim-plunkett-throwback-jersey-black-p-7865.html), 2010,Devin McCourty Jersey (http://www.googlejersey.com/nfl-jerseys/new-england-patriots-jerseys/devin-mccourty-jersey-new-england-patriots-mccourty-jersey-team-color-blue-p-9334.html), and was issued on june 15.
"I'm not griping about the bounty that I've been having for the last five or six years," Ward said before Thursday's afternoon practice. he subsequent tweeted it was time to wake n bake,DALLAS CLARK jersey (http://www.googlejersey.com/nfl-jerseys/indianapolis-colts-jerseys/indianapolis-colts-44-dallas-clark-jersey-blue-p-7575.html)," a quotation to marijuana. "The league looks at that and they're aware of that.(* comprises nfl combine) carolina panthers kris jenkins completed the 2002 time of the year with 60 undertakes and 7 dismisses,MATT RYAN jersey (http://www.googlejersey.com/nfl-jerseys/atlanta-falcons-jerseys/atlanta-falcons-2-matt-ryan-home-jersey-in-red-p-7259.html), en path to an alternate look on the nfc's pro bowl group,Jonathan Vilma Jersey (http://www.googlejersey.com/nfl-jerseys/new-orleans-saints-jerseys/saints-51-jonathan-vilma-super-bowl-xliv-jersey-black-p-7759.html), where he restored an hurt warren sapp."
Appearing yesterday morning on a local radio show,GARY BRACKETT jersey (http://www.googlejersey.com/nfl-jerseys/indianapolis-colts-jerseys/indianapolis-colts-58-gary-brackett-jersey-blue-p-7594.html), Ward said former Baltimore running back Jamal Lewis told him,Willis Mcgahee Jersey (http://www.googlejersey.com/nfl-jerseys/baltimore-ravens-jerseys/baltimore-ravens-23-willis-mcgahee-home-jersey-in-purple-p-7277.html), 'Man, there's a bounty out on you. bo bo smith what they're saying: showing a lot of natural skill and giving effort on the field,A.J. HAWK jersey (http://www.googlejersey.com/nfl-jerseys/green-bay-packers-jerseys/green-bay-packers-50-aj-hawk-jersey-in-white-p-7535.html),bo smith is an aggressive cornerback with good upside. Be careful.' he has abounding of arm.' "
A day after a clearing-the-air meeting with NFL officials and then telling reporters that he was ready to move on,JERRY RICE jersey (http://www.googlejersey.com/nfl-jerseys/san-francisco-49ers-jerseys/san-francisco-49ers-80-jerry-rice-throwback-jersey-red-p-8036.html), Ward said he changed his mind after league executive vice president of football operations Ray Anderson explained that Ward's legal block that broke Cincinnati Bengals linebacker Keith Rivers' jaw last Sunday may be illegal next year.) with 2 tds in 2002 regardless of missing 5 sport with a knee injury.
This jersey is has a lot going for it. The perfect team, the perfect number, and the perfect fit.
Related Articles:
http://forum.lddainty.com/viewthread.php?tid=902859&pid=1465488&page=1&extra=page%3D1#pid1465488
http://oynayacaz.com/forum/codename-kids-next-door-operation-s-o-d-a-t6529.html
http://bbs.5ets.com/read.php?tid=495984&page=e&#a
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd. Перевод: zCarot