Показать сообщение отдельно
  #10 (permalink)  
Старый 06.02.2010, 06:25
Профессор
Отправить личное сообщение для Andrei Посмотреть профиль Найти все сообщения от Andrei
 
Регистрация: 31.10.2009
Сообщений: 151

Почему-то не работает, вроде всё правильно делаю !?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript" src="/js/color_animate.js"></script>
<script type="text/javascript">

$(document).ready(function(){
	$('#test').hover(
		function(){
			$(this).stop(true,true).animate({'color':'#0C9'}, 500);							   
		},
		function(){
			$(this).stop(true,true).animate({'color':'red'}, 500);							   
		});
})	
        
</script>    
     
<title>test</title>
</head>

<body>

<a id="test" href="#">testLink</a>

</body>
</html>

Последний раз редактировалось Andrei, 06.02.2010 в 08:02.
Ответить с цитированием