내가 뭔가를 내놓았다 :
는 여기에 바이올린입니다. 그게 아니라면 할 수 있지만 작동 할 수있는 깨끗한 :
을 heres HTML : 여기
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="popUpButton.js"></script>
</head>
<body>
<div id="ToolBar" class="ToolbarDiv">
<button onclick="popUpButton()" type="button">ButtonOne</button>
</div>
</body>
</html>
그리고는 자바 스크립트 함수입니다 : 당신이 필요로하는 것입니다
function popUpButton() {
var popUpB = document.createElement('div');
popUpB.className = 'ButtonClass';
popUpB.id = 'ButtonID';
var message = document.createElement('img');
message.src = "http://www.google.com/intl/en_com/images/logo_plain.png";
popUpB.appendChild(message);
document.body.appendChild(popUpB);
$("img").animate({
marginLeft: "+=1000px",
}, 3000);
}
희망.
jQuery로 가능해야합니다. http://api.jquery.com/animal/ – Chris
CSS 애니메이션과 같이 http://api.jquery.com/category/effects/를 볼 수 있습니다. – bjb568