1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Titre de la page</title>
<script type="text/javascript" src="jquery-1.4.1.js"></script>
<script type="text/javascript" src="effects.core.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
$("body").append(function() {
if($(this).css("background-color") == "black") {
$(this).animate({ backgroundColor: "white" }, 1000);
} else if($(this).css("background-color") == "white"){
$(this).animate({ backgroundColor: "black" }, 1000);
} else {
$(this).css("background-color", "white");
}
});
});
</script>
<style type="text/css">
body {background-color:black}
</style>
</head>
<body>
<p><a href="test.php" class="texte">Voyons voir si ça marche dans un sens</a></p>
</body>
</html> |
Partager