文章浏览 复制本页面地址

Thinkphp jquery和prototype冲突解决

1、将jquery.js放到prototype.js前面(这个是必须的!)。
2、在jquery.js后面将$变量重命名。

第一步 顺序很重要

<import type='js' file="js.jquery" />
<script type="text/javascript">
var jQuery=$;
</script>
<import type='js' file="admin.js.datetime,js.jquery,js.prototype,Ajax.ThinkAjax,admin.js.checkall" />

 

提示框显示1秒钟 隐藏

function dis_tag(mess){
 jQuery("#re_result").html(mess);
 
 jQuery('#re_result').css({display:'block', top:'-100px'}).animate({top: '+100'}, 500, function(){
 setTimeout(out_tag, 1000);
});
}

function out_tag(div_id){
jQuery('#re_result').animate({top:'0'}, 500, function(){
jQuery(this).css({display:'none', top:'-100px'});
});
}

标签:
上一篇:
下一篇: