.html jQuery
$('img').mouseenter(function() {
$('#clothes').html('вы навели на кртинку номер 1');
});
<p id="colorcloth"> </p> <img src="images/createclothimg/color/1.jpg" width="100"> Я хочу сделать чтобы при наведении на картинку в теге <p> с id="clothes" выводило текст "вы навели на кртинку номер 1", мой вариант не правильный, скажите как правильно? |
Цитата:
|
я исправил на #clothes и все равно не работает
|
Цитата:
|
Цитата:
И примеры тестовые делать полные...
<!DOCTYPE html>
<html>
<head>
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<link rel='stylesheet type=text/css href=tmp.css' />
-->
<style type='text/css'>
</style>
<script type='text/javascript'>
$(function (){
$('img').mouseenter(function() {
$('#colorcloth').html('вы навели на кртинку номер 1');
});
});
</script>
</head>
<body>
<p id="colorcloth"></p>
<img src="http://javascript.ru/forum/images/smilies/smile.gif" width="100" />
</body>
</html>
|
| Часовой пояс GMT +3, время: 08:31. |