PDA

Просмотр полной версии : Помогите понять код


NeOz
11.07.2008, 15:35
Вообшем вот:

<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Google</title>
<style>body,td,a,p,.h{font-family:arial,sans-serif}.h{font-size:20px}.h{color:#3366cc}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}.lnc:link,.lnc:visited{color:#00 c}.pgtab,.pgtab:hover,.pgtabselected,.pgtabside{te xt-align:center;text-decoration:none;color:#00c;display:block;height:27 px;float:left;overflow:hidden;background:url(/intl/ja/images/productlinktabs.png) no-repeat;padding-top:8px}.pgtab{width:130px;background-position:-274px 0}.pgtab:hover{width:130px;background-position:-144px 0}.pgtabselected{width:144px}.pgtabside{width:3px; background-position:-404px 0}.iconl{overflow:hidden;height:px;width:px;positi on:relative}#gbar{float:left;height:22px;padding-left:2px}.gbh,.gb2 div{border-top:1px solid #c9d7f1;font-size:0;height:0}.gbh{position:absolute;top:24px;wi dth:100%}.gb2 div{margin:5px}#gbi{background:#fff;border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;top:24px;z-index:1000}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}@media all{.gb1,.gb3{height:22px;margin-right:.73em;vertical-align:top}.gb2 a,.gb2 b{display:block;padding:.2em .5em}}#gbi,.gb2{left:0;position:absolute;visibilit y:hidden}.gb2{z-index:1001}#gbar a{color:#00c}.gb2 a,.gb3 a{text-decoration:none}#gbar .gb2 a:hover{background:#36c;color:#fff;display:block}</style>
<script>window.google={kEI:"1mVySNzfEJTMwAGuxc2ZBA",kEXPI:"17259,17735",kHL:"ru"};
function sf(){document.f.q.focus()}
window.gbar={};(function()
{
var c=window.gbar,e,g,h;c.qs=function(b)
{
var d=window.encodeURIComponent&&(document.forms[0].q||"").value;
if(d)b.href=b.href.replace(/([?&])q=[^&]*|$/,function(f,a)
{
return(a||"&")+"q="+encodeURIComponent(d)
})
};
function n(b,d,f)
{
b.visibility=h?"hidden":"visible";b.left=d+"px";b.top=f+"px"
}
c.tg=function(b)
{
var d=0,f=0,a,i=0,o,l=window.navExtra,m,j=document,k=0 ;g=g||j.getElementById("gbar").getElementsByTagName("span");(b||window.event).cancelBubble=!i;if(!e){e=j.cre ateElement(Array.every||window.createPopup?"iframe":"DIV");e.frameBorder="0";e.scrolling="no";e.src="#";g[7].parentNode.appendChild(e).id="gbi";if(l&&g[7])for(o in l){m=j.createElement("span");m.appendChild(l[o]);g[7].parentNode.insertBefore(m,g[7]).className="gb2"}j.onclick=c.close}while(a=g[++i]){if(f){n(a.style,f+1,d+25);{d+=9;if(!(a.firstChil d.tagName=="DIV")){d+=11;k=Math.max(k,a.offsetWidth)}}}if(a.classN ame=="gb3"){do f+=a.offsetLeft;while(a=a.offsetParent)}}{i=0;whil e(a=g[++i])if(a.className=="gb2")a.style.width=k+"px";e.style.width=k+"px"}e.style.height=d+"px";n(e.style,f,24);h=!h
};
c.close=function(b)
{
h&&c.tg(b)
}
})();
</script></head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images){new Image().src='/images/nav_logo3.png'}" topmargin=3 marginheight=3>
<div id=gbar>
<nobr>
<span class=gb1><b>Веб</b></span>
<span class=gb1><a href="http://images.google.ru/imghp?hl=ru&tab=wi" onclick=gbar.qs(this)>КаÑ?тинки</a></span>
<span class=gb1><a href="http://maps.google.ru/maps?hl=ru&tab=wl" onclick=gbar.qs(this)>КаÑ?ты</a></span>
<span class=gb1><a href="http://news.google.ru/nwshp?hl=ru&tab=wn" onclick=gbar.qs(this)>�ово�ти</a></span>
<span class=gb1><a href="http://groups.google.ru/grphp?hl=ru&tab=wg" onclick=gbar.qs(this)>ГÑ?уппы</a></span>
<span class=gb1><a href="http://mail.google.com/mail/?hl=ru&tab=wm">Gmail</a></span>
<span class=gb3><a href="http://www.google.ru/intl/ru/options/" onclick="this.blur();gbar.tg(event);return !1"><u>ещё</u> <small>▼</small></a></span>
<span class=gb2><a href="http://blogsearch.google.ru/?hl=ru&tab=wb" onclick=gbar.qs(this)>Блоги</a></span>
<span class=gb2><a href="/dirhp?hl=ru&tab=wd" onclick=gbar.qs(this)>Каталог</a></span>
<span class=gb2><div></div></a></span> <span class=gb2><a href="http://ru.youtube.com/?hl=ru&tab=w1" onclick=gbar.qs(this)>YouTube</a></span>
<span class=gb2><a href="http://www.google.com/calendar/render?hl=ru&tab=wc">КалендаÑ?ÑŒ</a></span>
<span class=gb2><a href="http://picasaweb.google.ru/home?hl=ru&tab=wq" onclick=gbar.qs(this)>ФотогÑ?афии</a></span>
<span class=gb2><a href="http://docs.google.com/?hl=ru&tab=wo">Документы</a></span> <span class=gb2><a href="http://www.google.ru/reader/view/?hl=ru&tab=wy">Reader</a></span>
<span class=gb2><a href="http://otvety.google.ru/otvety/?hl=ru&tab=w2" onclick=gbar.qs(this)>ВопÑ?оÑ�Ñ‹ и ответы</a></span> <span class=gb2><div></div></a></span>
<span class=gb2><a href="http://www.google.ru/intl/ru/options/">Ð’Ñ�е пÑ?одукты &raquo;</a></span>
</nobr>
</div>
<div class=gbh style=left:0></div>
<div class=gbh style=right:0></div>
<div align=right id=guser style="font-size:84%;padding:0 0 4px" width=100%>
<nobr>
<a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.ru/ig%3Fhl%3Dru%26source%3Diglk&usg=AFQjCNGA90yIbM1R8iZtlxuqENUj3kH4hw">МоÑ� Ñ�Ñ‚Ñ?аница iGoogle</a>
|
<a href="https://www.google.com/accounts/Login?continue=http://www.google.ru/&hl=ru">Войти</a>
</nobr>
</div>

<center>

<script src="/extern_js/f/CgJydRICcnUrMAo4Ayw/sU0He6l7Lhs.js"></script>

<br clear=all id=lgpd>
<a href="/search?q=%D0%9C%D0%B0%D1%80%D0%BA+%D0%A8%D0%B0%D0% B3%D0%B0%D0%BB&hl=ru"><img src=/logos/chagall.gif width=276 height=125 border=0 alt="День Ñ?ождениÑ� МаÑ?ка Шагала" title="День Ñ?ождениÑ� МаÑ?ка Шагала"></a>
<br><br>

<form action="/search" name=f>
<table cellpadding=0 cellspacing=0>
<tr valign=top>
<td width=25%>&nbsp;</td>
<td align=center nowrap><input name=hl type=hidden value=ru><input autocomplete="off" maxlength=2048 name=q size=55 title="Пои�к в Google" value=""><br><input name=btnG type=submit value="Пои�к в Google"><input name=btnI type=submit value="Мне повезёт!"></td>
<td nowrap width=25%><font size=-2>&nbsp;&nbsp;<a href=/advanced_search?hl=ru>РаÑ�шиÑ?енный поиÑ�к</a><br>&nbsp;&nbsp;<a href=/preferences?hl=ru>Ð�аÑ�Ñ‚Ñ?ойки</a><br>&nbsp;&nbsp;<a href=/language_tools?hl=ru>Языковые инÑ�Ñ‚Ñ?ументы</a></font></td>
</tr>
<tr>
<td align=center colspan=3><font size=-1><span style="text-align:left"><input id=all type=radio name=lr value="" checked><label for=all> ПоиÑ�к в ИнтеÑ?нете </label><input id=il type=radio name=lr value="lang_ru"><label for=il> ПоиÑ�к Ñ�Ñ‚Ñ?аниц на Ñ?уÑ�Ñ�ком </label></span></font></td>
</tr>
</table>
</form>

<br><br>

<font size=-1>
<a href="/intl/ru/ads/">Рекламные пÑ?огÑ?аммы</a> -
<a href="/services/">РешениÑ� длÑ� пÑ?едпÑ?иÑ�тий</a> -
<a href="/intl/ru/about.html">В�ё о Google</a> -
<a href="http://www.google.ru/intl/ru/jobs/">Работа в Google</a> -
<a href="http://www.google.com/ncr">Google.com in English</a>
</font>

<p>
<font size=-2>
&copy;2008 - <a href="/intl/ru/privacy.html">Конфиденциально�ть</a>
</font>
</p>
</center>

</body>

<script>window.setTimeout('window.google.ac.install(docume nt.f,document.f.q,"",false,"закÑ?ыть",true,"","")',100);</script>

</html>

Что он делает?

swt1
11.07.2008, 15:40
начальная страница поисковика гугла.

m0nsieur
11.07.2008, 21:38
C какой целью анализируем? Может вопрос можно решить иначе.

Ergoproxy
11.07.2008, 21:57
C какой целью анализируем? Может вопрос можно решить иначе.


А с какой можно?

Ляпик
11.07.2008, 21:58
это html

m0nsieur
12.07.2008, 00:18
А с какой можно?
Может ему понравилась какая-то фича, он решил посмотреть как реализовано и сделать себе так же, самое первое что приходит на ум.

etc
12.07.2008, 03:22
Одна работа со страницей и ничего больше. JavaScript.