-
+75.3
- 1
- 2
- 3
<meta http-equiv="Тип-содержимое" content="text/html; charset=windows-1251"><meta http-equiv="Тип-содержимое" content="text/html; charset=windows-1251">
<meta http-equiv="Тип-содержимое" content="text/html; charset=windows-1251"><meta http-equiv="Тип-содержимое" content="text/html; charset=windows-1251">
<meta http-equiv="Тип-содержимое" content="text/html; charset=windows-1251"><meta http-equiv="Тип-содержимое" content="text/html; charset=windows-1251"><meta http-equiv="Тип-содержимое" content="text/html; charset=windows-1251">
Случайно открыл исходный код заглавной страницы сайта utel.tv, а там вот так указывают Content-Type, видимо чтобы непонятливые браузеры поняли хотя-бы с седьмого раза. Может объяснить им, что тип контента это конечно оно, но не туда? :)
eveel,
20 Октября 2009
-
+170.2
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
kadr1=function(){
document.getElementById('banner').style.marginLeft='1'
window.setTimeout('kadr2()',100)
};
kadr2=function(){
document.getElementById('banner').style.marginLeft='2'
window.setTimeout('kadr3()',100)
};
kadr3=function(){
document.getElementById('banner').style.marginLeft='3'
window.setTimeout('kadr4()',100)
};
и так 50 кадров анимации)) я улез под стол
Infamous,
20 Октября 2009
-
+159.2
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
/****************** Fixed Header GridView *******************/
th, th.locked
{
top:expression(parentNode.parentNode.parentNode.parentNode.scrollTop);
position:relative;
}
td.locked, th.locked
{
left:expression(parentNode.parentNode.parentNode.parentNode.scrollLeft);
font-weight:bold;
}
CSS+Javascript. Непередаваемые ощущение говна.
plsc_rover,
19 Октября 2009
-
+150.5
- 1
<a href="#" class="lalalalalala" onclick="$('#frm').submit()">Добавить</a>
обычный сабмит для веб 2.0 не катит а ни разу ))
paranoid,
19 Октября 2009
-
−164.2
- 1
- 2
- 3
- 4
- 5
- 6
CREATE TABLE users(
....
passwd VARCHAR (32) DEFAULT NULL,
passwd_clear VARCHAR (32) DEFAULT NULL,
....
passwd - типа зашифрованный
passwd_clera - типа в открытом виде ))))
paranoid,
19 Октября 2009
-
+63.4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
void RoomFactory::roomCreated(Siis::Room* room,bool created)
{
if(!created)
{
rooms_.remove(room->peer()->jid().bare());
delete room;
}
}
Не индус...
nesquikm,
19 Октября 2009
-
−119.8
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
case @demand.status #зависит также от временных групп
when 1,4
@status_list[2]=@@statuses[2]
when 2,7,8
@status_list[2]=@@statuses[2]
@status_list[3]=@@statuses[3]
@status_list[7]=@@statuses[7]
@status_list[8]=@@statuses[8]
when 3
@status_list[3]=@@statuses[3]
if @is_admin || @demand.watchers.include?(session[:user]) || @demand.heads.include?(session[:user]) ||@see_later_demands_watchers || @see_later_demands_heads
@status_list[4]=@@statuses[4]
end
if @is_admin || @demand.heads.include?(session[:user]) || @see_later_demands_heads
@status_list[6]=@@statuses[6]
end
when 6
if @is_admin || @demand.watchers.include?(session[:user]) || @demand.heads.include?(session[:user]) ||@see_later_demands_watchers || @see_later_demands_heads
@status_list[4]=@@statuses[4]
end
else
end
магия
Rommel,
18 Октября 2009
-
+169.8
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
function query($sql)
{
//DEBUG echo $sql."<br />";
db::$count++;
$r = mysql_query($sql);
if(($this->error = mysql_error()) != "")
return false;
else
{
$this->error = "";
return mysql_query($sql);
}
}
Человек долго удивлялся, почему у него в mysql две записи валится при INSERT, а не одна
striker,
18 Октября 2009
-
+130.5
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
try
{
// some logic
}
catch(Exception ex)
{
throw;
}
Error handling :)
bugotrep,
16 Октября 2009
-
+167.8
...
Infamous,
16 Октября 2009