Ураааа!!! работает!!! спасибо Deff, что бы я балбес без вас делал...
|
vadim5june я точно так и сделал, засунул в братный вызов
|
В методе .on() есть такой параметр events
он может иметь значения blur, focus, focusin, focusout, load, resize, scroll, unload, click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, error. Привычного hover'a я не вижу..... то получается надо устанавливать 2 обработчика? Один на mousemove а второй на mouseout? |
mouseover
|
Выложите старый код
|
jQuery(document).ready(function(){ jQuery(".sssss, .vvvvv").click(function(){ var informa = jQuery(this).find(".infirmation").text(); window.location = informa; return false; }); jQuery("#afff").click(function(){ jQuery("#afff-open").slideToggle("normal"); return false; }); }); jQuery(document).ready(function(){ jQuery('#calendarrr A').removeAttr('title').removeAttr('href'); //обработчик календаря var intervalID1; jQuery('#calendarrr').hover(function(){ var popup1 = jQuery('#calend-hover'); intervalID1=setTimeout( function() { popup1.fadeIn(400); }, 350); }, function(){ jQuery('#calend-hover').fadeOut(400); clearInterval(intervalID1); }); //обработчик информера погоды var intervalID2; jQuery('.perobl').hover(function(){ var aa = jQuery(this); intervalID2=setTimeout( function() { aa.find('#dop-info').fadeIn(200); aa.find('.arrow-weather').fadeIn(200); }, 350); },function(){ jQuery(this).find('#dop-info').fadeOut(200); jQuery(this).find('.arrow-weather').fadeOut(200); clearInterval(intervalID2); }); //ОБРАБОТЧИКИ СТРЕЛОК НА ИНФОРМЕРЕ // ПЕРВЫЙ jQuery('#perobl1 .vpered').click(function(){ jQuery('#perobl1').fadeOut(200,function(){ jQuery('#perobl2').fadeIn(200); }); }); // второй jQuery('#perobl2 .vpered').click(function(){//вперед jQuery('#perobl2').fadeOut(200,function(){ jQuery('#perobl3').fadeIn(200); }); }); jQuery('#perobl2 .nazad').click(function(){//назад jQuery('#perobl2').fadeOut(200,function(){ jQuery('#perobl1').fadeIn(200); }); }); // третий jQuery('#perobl3 .vpered').click(function(){//вперед jQuery('#perobl3').fadeOut(200,function(){ jQuery('#perobl4').fadeIn(200); }); }); jQuery('#perobl3 .nazad').click(function(){//назад jQuery('#perobl3').fadeOut(200,function(){ jQuery('#perobl2').fadeIn(200); }); }); // четвертый jQuery('#perobl4 .nazad').click(function(){//назад jQuery('#perobl4').fadeOut(200,function(){ jQuery('#perobl3').fadeIn(200); }); }); }); |
Если Вы загрузите соответствующий скрипт из обработчика load то ничего переделывать не надо будет
$("#ggg").load("/222.php div#logo_and_search",function(){ jQuery.getScript( url [, success(script, textStatus, jqXHR)] )}); |
меня этот вариант устраивает, а не могли бы вы показать пример использования getScript а то пока я найду и пока до меня допрет......
|
Цитата:
<script src='tratata.js'></script> только динамическая во время выполнения программы http://api.jquery.com/jQuery.getScript/ |
Цитата:
|
Часовой пояс GMT +3, время: 02:15. |