- 1
<SCRIPT LANGUAGE=JavaScript src="../../../../../vstavka.txt"></script>
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+135
<SCRIPT LANGUAGE=JavaScript src="../../../../../vstavka.txt"></script>
http://www.helloworld.ru/texts/comp/lang/php/spravscript/stranica13.html что статьи говно что сайт.
+162
<script language="javascript" src="http://media.fastclick.net/w/get.media?sid=24280&m=1&tp=5&d=j&t=n"></script><noscript><a href="http://media.fastclick.net/w/click.here?sid=24280&m=1&c=1" target="_blank"><img src="http://media.fastclick.net/w/get.media?sid=24280&m=1&tp=5&d=s&c=1"width=728 height=90 border=1></a></noscript>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>unstyled form</title>
<script type="text/JavaScript">
<!--
function myF(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<form id="form1">
<select name="menu1" onchange="myF('parent',this,0)">
<option>Return to home page</option>
<option>Contact</option>
<option>unnamed1</option>
</select>
</form>
</body>
</html>
С новым 1993-им годом!
+145
<noscript><meta http-equiv="refresh" content="0; URL=/badbrowser.php"></noscript>
Паша Дура запретил отрубать его говноскрипты, теперь все должны смотреть на контакт, засранный скриптами.
+164
var s = setUpOmnitureVariable();
s.pageName="LO-20110214-EE-VQP-203";
s.server="www2.experts-exchange.com";
s.channel="Web_Development/Web_Languages-Standards/PHP";
s.pageType="";
s.prop1=document.title;
s.prop2="";
s.prop3="";
s.prop4="";
s.prop5="";
s.prop6="";
s.prop7=""; // TODO THIS IS NO LONGER PROP 7, SHOULD BE BLOG AUTHOR
s.prop8="";
s.prop9="";
s.prop10="";
s.prop11="";
s.prop12="";
s.prop14="";
s.prop15="50";
s.prop16="";
<...>
s.prop27="";
s.prop28="";
<...>
s.prop41="";
s.prop42="";
s.prop43="";
s.prop44="";
s.prop45="";
s.prop46="";
s.prop47="";
s.prop48="";
s.prop49="";
s.prop50="";
/* E-commerce Variables */
s.campaign="";
s.events="event4,event74";
s.products="";
s.state="";
s.zip="";
s.purchaseID="";
s.eVar1=document.title;
s.eVar2="";
s.eVar3="AD #3 - Scroll, bullet, no steps";
s.eVar4="";
s.eVar5="";
s.eVar6="Free Trial Guest";
s.eVar7="";
s.eVar8="";
s.eVar9="";
s.eVar10="";
s.eVar14="";
<...>
s.eVar26="";
s.eVar27="";
s.eVar28="";
s.eVar29="5AM";
s.eVar30="Sunday";
s.eVar31="77.243.99.37";
s.eVar32="";
s.eVar33="Web_Development/Web_Languages-Standards/PHP";
s.eVar34="3";
s.eVar35="20110214-EE-VQP-203-FREE-TRIAL";
s.eVar36="Header AD";
<...>
s.eVar44="Accepted Solution";
s.eVar45="EE_Level3 - 2";
s.eVar46="";
s.eVar47="";
s.eVar48="";
s.eVar49="rating9.6";
Источник виден в коде. Неужели нельзя было массив сделать?! Или это такой странный вид обфускации?
+168
function ProcButton0()
{
var s=document.getElementById("InputN").value;
if (s!="")
{
s+="0";
}
document.getElementById("InputN").value=s;
}
function ProcButton1()
{
document.getElementById("InputN").value+="1";
}
function ProcButton2()
{
document.getElementById("InputN").value+="2";
}
function ProcButton3()
{
document.getElementById("InputN").value+="3";
}
function ProcButton4()
{
document.getElementById("InputN").value+="4";
}
function ProcButton5()
{
document.getElementById("InputN").value+="5";
}
function ProcButton6()
{
document.getElementById("InputN").value+="6";
}
function ProcButton7()
{
document.getElementById("InputN").value+="7";
}
function ProcButton8()
{
document.getElementById("InputN").value+="8";
}
function ProcButton9()
{
document.getElementById("InputN").value+="9";
}
function ProcButtonClear()
{
document.getElementById("InputN").value="";
}
С сайта о программировании (#5809).
http://codesite.hut2.ru/JavaScriptTests/Factorial/
+177
if(msg == "" || msg == "{}"){
// странный баг, форма очищается, но не прячется
return;
$("#variants_div").html('');
$("variants_div").hide();
}
Даже Джумла первая была радостным кодом по сравнению с этим.
+165
function get_sel_values(index){
var test = eval('typeof opt_val'+index);
if ( test != 'undefined' ){
eval('var sel_values = opt_val'+index);
return sel_values;
}
else { return false; }
}
//**************************************************************
function get_sel_text(index){
var test = eval('typeof opt_text'+index);
if ( test != 'undefined' ){
eval('var sel_text = opt_text'+index);
return sel_text;
}
else { return false; }
}
//**************************************************************
function show_select(index, lev, dv){
if ( dv == 'jdc1'){ var tr = "jdc2";}
if ( dv == 'jdc2'){ var tr = "jdc3";}
if ( dv == 'jdc3'){ var tr = "jdc4";}
var curr_sel_text = get_sel_text(index);
var curr_sel_value = get_sel_values(index);
if ( curr_sel_value != false && curr_sel_text != false ){
if ( dv == 'jdc1'){
document.getElementById('jdc1').style.visibility = "visible";
document.getElementById('jdc2').style.visibility = "hidden";
document.getElementById('jdc3').style.visibility = "hidden";
document.getElementById('jdc4').style.visibility = "hidden";
document.forms["form1"].elements['cc2'].length = 0;
document.forms["form1"].elements['cc3'].length = 0;
document.forms["form1"].elements['cc4'].length = 0;
}
if ( dv == 'jdc2'){
document.getElementById('jdc1').style.visibility = "visible";
document.getElementById('jdc2').style.visibility = "visible";
document.getElementById('jdc3').style.visibility = "hidden";
document.getElementById('jdc4').style.visibility = "hidden";
document.forms["form1"].elements['cc3'].length = 0;
document.forms["form1"].elements['cc4'].length = 0;
}
if ( dv == 'jdc3'){
document.getElementById('jdc1').style.visibility = "visible";
document.getElementById('jdc2').style.visibility = "visible";
document.getElementById('jdc3').style.visibility = "visible";
document.getElementById('jdc4').style.visibility = "hidden";
document.forms["form1"].elements['cc4'].length = 0;
}
var count_values = curr_sel_value.length;
var category_list = document.forms["form1"].elements[lev];
var count_category_list = category_list.options.length;
category_list.length = 0;
for (i = 0; i < count_values; i++){
if (document.createElement){
var newCategoryListOption = document.createElement("OPTION");
newCategoryListOption.text = curr_sel_text[i];
newCategoryListOption.value = curr_sel_value[i];
(category_list.options.add) ? category_list.options.add(newCategoryListOption) : category_list.add(newCategoryListOption);
}else{
category_list.options[i] = new Option(curr_sel_text[i], curr_sel_value[i], false, false);
}
}
document.getElementById(tr).style.visibility = "visible";
}
else{
document.getElementById(tr).style.visibility = "hidden";
}
}
//-->
+169
<script type="text/javascript">
opt_text13=new Array("Internet","Hardware","Mobiles","Soft","Sequrity","Networks","Interface");
opt_val13=new Array("14","28","44","54","61","67","72");
opt_val113=new Array("114","115","116","117","118","119","120","121");
opt_text122=new Array("Essays","Scintific Publications","Online Lessons & Tests","Scintific Libraries","Other");
opt_val122=new Array("123","124","125","126","127");
opt_text128=new Array("Your Appartment","Cookery","All for Holidays","Family","Pats","Health","Fashion and Beauty","Purchases");
opt_val128=new Array("129","138","146","155","162","170","179","189");
opt_text129=new Array("Country Cottage","Repair","Construction","Interior Design","Landscape Design","Building Materials","Sanitary","Other");
opt_val129=new Array("130","131","132","133","134","135","136","137");
opt_text138=new Array("Recepies","Diet","Products","Tabacco","Bavarage","Delivery","Other");
opt_val138=new Array("139","140","141","142","143","144","145");
opt_text146=new Array("E-Cards","Tostes and scenaries","Gifts","Flowers Delivery","Holiday Organization","Fireworks","Holidays","Other");
opt_val146=new Array("147","148","149","150","151","152","153","154");
opt_text155=new Array("For Parents","For Children","Relation's Psyhology","Marrage","Marrage Agancies","Other");
//...............
opt_val252=new Array("253","254","255","256","257","258");opt_text259=new Array("Astrology","Fortune-telling","Esotericism","UFO","Other");
opt_val259=new Array("260","261","262","263","264");
opt_text268=new Array("Places","Tourism","Vocation","Hobbies");
opt_val268=new Array("269","280","292","297");
opt_text269=new Array("Restaurants & Bars","Clubs & Diskos","Bowling & Billiard","Casinos","Places for children","Circuses","Parks & Zoos","Theaters","Cinemas","Other");
opt_val269=new Array("270","271","272","273","274","275","276","277","278","279");
opt_text428=new Array("Newspapers","Magazines","Publishing Houses","Business publications","Computer publications","Motor-Car publications","Sport publications","Entertaining publications","Music/Cinema/TV","Publications for women","Publications for men","Publications for kids","Other publications");opt_val428=new Array("429","430","431","432","433","434","435","436","437","438","439","440","441");opt_text446=new Array("Metallurgy","Mechanical engineering","Equipment","Electronics","Energetics","Chemical industry","Agriculture","Food Industry","Factories","Light Industry","Heavy Industry","Other industries");opt_val446=new Array("447","451","458","469","473","479","483","484","485","486","487","488");opt_text447=new Array("Iron industry","Non-ferrous metallurgy","Other");opt_val447=new Array("448","449","450");opt_text451=new Array("Motor-car Factories","Engeenering Factories","Agricultural Factories","Sheepbuilding","Aircraft building","Other");
//........
opt_text529=new Array("Office equipment","Office furneture","Lock boxes","Stationery","Other");opt_val529=new Array("530","531","532","533","534");opt_text536=new Array("Encyclopedias","Transport","Maps","Addresses & Phones","Search people","Dictionaries","Weather","Other");opt_val536=new Array("537","543","552","553","554","555","556","557");opt_text537=new Array("Universal","Medical","Biographical","Subject encyclopedia","Other");opt_val537=new Array("538","539","540","541","542");opt_text543=new Array("Timetables","Air transport","Railway","Sailing","Urban transport","Taxi & Car rent","Bus transport","Other");opt_val543=new Array("544","545","546","547","548","549","550","551");opt_text558=new Array("Other");
opt_val558=new Array("559");//**************************************************************
+168
if(videoID == undefined || typeof videoID == 'undefined' || !videoID){
alert("Invalid video!");
return false;
}
Боги, спасите мою душу от этого проекта
+165
function shake(dom, power, count, duration) {
dom.stop();
for (var i = 0; i < count; i++) {
dom.animate({'margin-left': ((i%2 == 0) ? '+' : '-') + '=' + ((i == 0 || i == count-1) ? power/2 : power)}, duration);
}
}
Оптимизация рулит :)