내 웹 사이트에 회전 로고를 넣고 싶습니다. 나는 그것이 계속해서 회전해야한다는 것을 의미한다. 나는 jquery와 같은 일을 시도했다. 제발 내가 어디로 가고 있는지 나에게 제안 해주세요. 이 코드가 작동하지 않는 이유. 나는이이미지를 연속적으로 회전
<!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" />
<script type="text/javascript" src="jquery-1.4.4.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script type="text/javascript">
var rotation = function(){
$("#img").rotate({
angle:0,
animateTo:360,
callback: rotation,
easing: function (x,t,b,c,d){ // t: current time, b: begInnIng value, c: change In value, d: duration
return c*(t/d)+b;
}
});
}
rotation();
</script>
<title>Untitled Document</title>
</head>
<body>
<img src="LMIH_LOGO.png" width="174" height="322" name="img" id="img" />
</body>
</html>
그것이 작동하지처럼 내 HTML에서이 코드를 사용하고 저
var rotation = function(){
$("#img").rotate({
angle:0,
animateTo:360,
callback: rotation,
easing: function (x,t,b,c,d){ // t: current time, b: begInnIng value, c: change In value, d: duration
return c*(t/d)+b;
}
});
}
rotation();
도와주세요. 아무도 도와주세요.
나는 이것에 대한 애니메이션 GIF를 권장합니다. –
회전 플러그인을 포함하지 않습니다. – Usman
Usman, jquery.rotate.1-1.js를 포함했지만 여전히 작동하지 않습니다. ( – priya