插件调用示例
<script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="js/msgTips.js" type="text/javascript"></script>
<script type="text/javascript">
$(function (){
$("#ie").manhua_msgTips({
Event : "click", //响应的事件
timeOut : 4000, //提示层显示的时间
msg : "为了保证更好的网站体验,请升级IE版本到8.0或以上!", //显示的消息
speed : 300, //滑动速度
type : "warning" //提示类型(1、success 2、error 3、warning)
});
$("#no").manhua_msgTips({
Event : "click", //响应的事件
timeOut : 4000, //提示层显示的时间
msg : "很抱歉!您好操作此插件错误,请重新操作!", //显示的消息
speed : 300, //滑动速度
type : "error" //提示类型(1、success 2、error 3、warning)
});
$("#yes").manhua_msgTips({
Event : "click", //响应的事件
timeOut : 4000, //提示层显示的时间
msg : "恭喜你!操作成功,欢迎访问jQueryfuns(www.jqueryfuns.com)", //显示的消息
speed : 300, //滑动速度
type : "success" //提示类型(1、success 2、error 3、warning)
});
});
</script>