Jump to content


Photo

Porque Isso Não Funciona?


  • Faça o login para participar
4 replies to this topic

#1 The XeoN #

The XeoN #

    Novato no fórum

  • Usuários
  • 8 posts
  • Sexo:Não informado

Posted 15/01/2010, 01:54

Olá galera!

Gente, me deparei com uma coisa muito estranha agora ...

Porque esse codigo jquery simplesmente nao funciona?

Isso era pra funcionar facil!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('div#rainbow').click(function() {
		$(this).animate({background: '#F00'}, 1000);
	});
}); 
</script>
</head>

<body>
<div id='rainbow' style="background: black; width: 500px; height: 500px;"></div>
</body>
</html>

Se alguem puder ajudar eu agradeço.

valeu :D
Denis Lins
http://www.denislins.com.br/
(31) 9818-0786

#2 Alex Hiroshi

Alex Hiroshi

    Super Veterano

  • Ex-Admins
  • 4923 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP

Posted 15/01/2010, 08:47

Usa o plugin color animations.
Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Ex-Administrador

#3 The XeoN #

The XeoN #

    Novato no fórum

  • Usuários
  • 8 posts
  • Sexo:Não informado

Posted 15/01/2010, 19:36

Tá, mas porque nao funcionou?

Isso que eu quero saber :S
Denis Lins
http://www.denislins.com.br/
(31) 9818-0786

#4 Alex Hiroshi

Alex Hiroshi

    Super Veterano

  • Ex-Admins
  • 4923 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP

Posted 16/01/2010, 10:26

Animate():

The value associated with the key represents to what end the property will be animated. If a number is provided as the value, then the style property will be transitioned from its current state to that new number. Otherwise if the string "hide", "show", or "toggle" is provided, a default animation will be constructed for that property. Only properties that take numeric values are supported (e.g. backgroundColor is not supported).


Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Ex-Administrador

#5 The XeoN #

The XeoN #

    Novato no fórum

  • Usuários
  • 8 posts
  • Sexo:Não informado

Posted 19/01/2010, 12:04

Aaah ta, entendi.

Valeu :D
Denis Lins
http://www.denislins.com.br/
(31) 9818-0786




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq