Показать сообщение отдельно
  #6 (permalink)  
Старый 24.09.2014, 21:55
Аватар для bes
bes bes вне форума
Профессор
Отправить личное сообщение для bes Посмотреть профиль Найти все сообщения от bes
 
Регистрация: 22.03.2012
Сообщений: 3,744

http://api.jquery.com/on/
Цитата:
Deprecated in jQuery 1.8, removed in 1.9: The name "hover" used as a shorthand for the string "mouseenter mouseleave". It attaches a single event handler for those two events, and the handler must examine event.type to determine whether the event is mouseenter or mouseleave. Do not confuse the "hover" pseudo-event-name with the .hover() method, which accepts one or two functions.
Не путайте имя псевдо-события "hover" с методом .hover(), который принимает на вход одну или две функции.


нормальные примеры надо делать - нажал и посмотрел
я не понял чего ты там хотел добиться

<script src="http://code.jquery.com/jquery-1.11.1.js"></script>

<div class="div">
	<img id="img1" class="img" data-id="2" src="http://javascript.ru/forum/image.php?u=34470&dateline=1397213510" /><br/>
	<img id="img2" class="img" data-id="1" src="http://javascript.ru/forum/image.php?u=19820&dateline=1334914235" />
	<div id="div1">light</div>
	<div id="div2">bes</div>
</div>

<script>
$(".div .img").hover(
	function(){
		$("#img" + $(this).attr('data-id') + ", #div" + $(this).attr("data-id")).hide();
	},
	function(){
		$("#img" + $(this).attr('data-id') + ", #div" + $(this).attr("data-id")).show();
	}
);
</script>



сегодня целый день что-то происходит?
http://api.jquery.com/
UPD:
--------------
Common, guyz!. All your base are belong to us.
Just please reinstall dat backdoored openssh deamon. And all will be fine.

root@jq01:~# who
scottgonzalez pts/1        2014-09-24 11:18 (pool-72-**-27-9.hrbgpa.****.verizon.net)
s5fs     pts/0        2014-09-24 11:16 (c-24-**-82-162.hsd1.or.*****.net)
ryanneufeld pts/3        2014-09-24 11:36 (s0106002618c70459.**.shawcable.net)
gnarf    pts/4        2014-09-24 11:43 (50.***.62.97)


--------------

I'm looking for a new job, I'm so sorry for this experiment with iframe, no one was injured, all files was permanently deleted.
Greetz: Umputun, Bobuk, Gray, Ksenks @ radio-t.com
My PGP public key is:
-----BEGIN PGP PUBLIC KEY BLOCK-----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