Сегодня в меню только лапша.

    Date: 10/29/07 (Code WTF)    Keywords: no keywords

    Из js-файла построения меню одного популярного буржуйского сайта:

    
    	if(whoIsDefault == 0) {
    		document.getElementById('headerPipe2').style.visibility="visible";
    		document.getElementById('headerPipe3').style.visibility="visible";
    		document.getElementById('headerPipe4').style.visibility="visible";
    		document.getElementById('headerPipe5').style.visibility="visible";
    		document.getElementById('headerPipe6').style.visibility="visible";
    		document.getElementById('headerPipe7').style.visibility="visible";
    		document.getElementById('headerPipe8').style.visibility="visible";
    	}else if(whoIsDefault == 1) {
    		document.getElementById('headerPipe2').style.visibility="hidden";
    		document.getElementById('headerPipe3').style.visibility="visible";
    		document.getElementById('headerPipe4').style.visibility="visible";
    		document.getElementById('headerPipe5').style.visibility="visible";
    		document.getElementById('headerPipe6').style.visibility="visible";
    		document.getElementById('headerPipe7').style.visibility="visible";
    		document.getElementById('headerPipe8').style.visibility="visible";
            ...
    	}else if(whoIsDefault == 8) {
    		document.getElementById('headerPipe2').style.visibility="visible";
    		document.getElementById('headerPipe3').style.visibility="visible";
    		document.getElementById('headerPipe4').style.visibility="visible";
    		document.getElementById('headerPipe5').style.visibility="visible";
    		document.getElementById('headerPipe6').style.visibility="visible";
    		document.getElementById('headerPipe7').style.visibility="visible";
    		document.getElementById('headerPipe8').style.visibility="hidden";
    	}
    


    В таком духе еще мест шесть.
    Вероятность, что юзали генератор - мала.

    Source: http://community.livejournal.com/code_wtf/109970.html

« Event::1024 || Creole is inspired by... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home