Не работает скрипт.
Всем привет. Объясните, пожалуйста, что не правильно в этом скрипте! Не работает вторая часть, где прозрачность должна меняться на 0.4
$(document).ready(function() { $('.closebox').mouseover(function() { $('#ivbx').animate({ opacity: '1' }, "fast"); }); $('.closebox').mouseout(function () { $('#ivbx').animate({ opacity: '0,4' }, "fast"); }); }); Заранее спасибо. |
Тему можно закрывать. Ответ найден.
|
Не наю, - всё работает(мож буква где русская ?
<script type="text/javascript" src="http://yandex.st/jquery/1.4.4/jquery.min.js"></script> <style> .closebox { border:blue 2px solid; height:100px; width:200px; } .closebox #ivbx{ background-color:red; width:200px; height:100px; } </style> <div class="closebox"><div id="ivbx"></div></div> <script type="text/javascript"> $('.closebox #ivbx').css({'opacity': '0.4'}); $(document).ready(function(){ $('.closebox').mouseover(function(){ $('#ivbx').animate({ opacity: '1' }, "fast"); }); $('.closebox').mouseleave(function() { $('#ivbx').animate({ opacity: '0.4' }, "fast"); }); }); </script> |
Часовой пояс GMT +3, время: 05:41. |