Example #0 .clr{ color:red; } // функция, которая будет привязана к обработчику события // своего рода обработчик события //var sel = function(){ // в переменную counter получаем текст, находящийся в теге с id="e1" //var counter = $("#e1").html(); // увеличиваем счетчик и заменяем его значением текст в теге с id="e1" //$("#e1").html(++counter); // return false; //} function qwe(e){ //e = $("#w").html(); $("#w").html(e.type); return false; } $(document).ready(function(){ $('#t').bind('mouseenter.firstnamespace', qwe); $('#t').bind('click.firstnamespace', qwe); $('#t').bind('dblclick.firstnamespace', qwe); $('#t').bind('keypress.firstnamespace', qwe); $('#t').bind('select.firstnamespace', qwe); }); header li
0
header li
paragraf
header li
paragraf
header li
paragraf
sobitie