кто знает как сделать такую тему как тут http://arsamania.com/forum/ ???
там при наведении на форум он подсвечивается красным цветом
Даже сдёсь такое есть, только тут жёлтая подсветка!
Помогите плиз!
Заранее благодарен!


Код: Выделить всё
table.gTable tr:hover td.forumLastPostTd, table.gTable tr:hover td.forumIcoTd, table.gTable tr:hover td.threadIcoTd, table.gTable tr:hover td.forumNameTd, table.gTable tr:hover td.threadNametd, table.gTable tr:hover td.forumPostTd, table.gTable tr:hover td.threadPostTd, table.gTable tr:hover td.threadViewTd, table.gTable tr:hover td.threadAuthTd, table.gTable tr:hover td.forumThreadTd, table.gTable tr:hover td.threadLastPostTd, table.gTable tr:hover td.forumLastPostTd {
background-attachment: scroll;
background-repeat: repeat;
background-position: 0% 0%;
background-color: #AA0000;
border-top-color: #E26B6F;
border-left-color: #E26B6F;
border-right-color: #E26B6F;
border-bottom-color: #E26B6F;
border-top-width: 1px;
border-left-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
}Код: Выделить всё
<SCRIPT type=text/javascript>
$(document).ready(function()
{
$(".forumNameTd").parent().hover(
function(){$(this).addClass('hover');},
function(){$(this).removeClass('hover');
});
});
</SCRIPT>Код: Выделить всё
.hover td {background: #aa0000;cursor: pointer;border: 1px solid:#19262e}Youzer писал(а):в IE не будет работать
Youzer писал(а):Код: Выделить всё
<SCRIPT type=text/javascript>
$(document).ready(function()
{
$(".forumNameTd").parent().hover(
function(){$(this).addClass('hover');},
function(){$(this).removeClass('hover');
});
});
</SCRIPT>
и на класс для него:
.Код: Выделить всё
hover td {background: #aa0000;cursor: pointer;border: 1px solid:#19262e}
Lexin писал(а):яваскрипт код в <head></head> или после него а второй код в CSS
.threadNametd,.forumNameTd {padding:10px;color:#bbb;}
.threadNametd:hover,.forumNameTd:hover {border-left:3px solid
#c7c7c7;padding:10px 10px 10px 7px;color:#aaa;background:#e1e3e3;}