您好,欢迎访问一九零五行业门户网

基于jquery DOM写的类似微博发布的效果_jquery

复制代码 代码如下:
微博发布jq版
微博发布
').appendto($('#outer')).hide().fadein(200).fadeout(200).fadein(200).fadeout(200);
return;
}else{
$('#test2')[0].disabled=true; //发布成功后,禁止
var timer=new date();
//微博
$('
'+timer.gethours()+时+timer.getminutes()+分+timer.getseconds()+秒+'
').prependto($('#test3'));
$('.con')[0].innertext=$('#test1')[0].value;
//头像信息
$('.imgs:eq(0)').hover(
function(){$('名字:悟空称号:战斗圣佛现居:花果山').appendto($(this).parent());},
function(){$('.imginf').remove();}
)
//清空
$('#test1')[0].value=;
//发布成功时动画
$('发布成功
').appendto($('#outer')).hide().fadein(500).fadeout(500,function(){$('#test2')[0].disabled=false;});
//插入节点时的动画效果
$('.test:first').hide().slidedown(slow);
//删除按钮的事件
$('.bu:eq(0)').click(function(){
if(confirm('确定删除吗?')){
$(this).parent().parent().hide(1000,function(){
$(this).remove();
});
}
});
}
})
//-->
其它类似信息

推荐信息