i 有一个文字区,点击该文本 右边和右边的滑坡以及bl,但问题在于你再次点击右边。 从那时起,它就开始流离失所。 是否有办法从最初的任职开始?
My html
<textarea id="textarea" cols="50" rows="15" style="margin-top:100px;"></textarea>
<div id="block" style="display:none;">
<h1>Tips</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p></div>
本科
#block {
position:absolute;
left:400px;
top:80px;
width:500px;
margin:0px;
z-Index: 100;
background-color:#FBCA8F;
color: #444;
border: 1px solid #000;
padding:10px;
line-height: 150%;
}
Java
$("#textarea").focus(function(){
$("#block").fadeIn(10).animate({"left": "+=30px" },"fast");
});
$("#textarea").blur(function(){ $("#block").animate({"left": "-=5px" },"fast").fadeOut(10);
});
Originally the textarea slide description (http://www.taskrabbit.com/tasks/newfrom=howitworks) on that site was what i was aiming for but this is only what i could come up with. I d really appreciate any help. Many Thanks.