html弹出提示showtoast
来源:互联网 发布:巫师 斯拉夫神话知乎 编辑:程序博客网 时间:2024/06/06 08:23
1.手工做了一个提示
步骤:
1.引用jquery.js和showtoast.js
2.调用showtoast()
或者showsucess()或者showfailure()
-----------------分割线-------------------------------------------
/**
* 采用自定义弹出框框 * *///添加蒙版 和弹出框框$(document).ready(function() {var pop_tmp="<div id='toastcenter' onclick='closetoast()' style='left: 40%;top:30%;width:330px;background-color:black;position:absolute;padding:2px;margin:5px;display:none;';> <div style='padding:5px;color:white;height: 20px;'><lable style='float: left;'>消息提示</lable><lable style='float: right;cursor: pointer;'>关闭</lable></div> <div style='width:100%;background-color:white;padding-top:20px;padding-bottom:20px;text-align:center'><lable style='color:#0095D9;cursor: pointer;' id='tmptext'>操作成功....</lable></div> </div> </div> ";var docucment_tmp="<div id='mask_tmp' style='filter: Alpha(opacity=30); -moz-opacity: 0.3; -khtml-opacity: 0.3;opacity: 0.3; background-color: #000; width: 100%; height: 100%; z-index: 5px; position: absolute; left: 0; top: 0; display: none; overflow: hidden;'> </div> "; $(document.body).append(docucment_tmp+pop_tmp);});//var time_tmp=3000; 默认自动3s关闭function showtoast(){ $("#mask_tmp").css("display","block"); $("#toastcenter").show(300); var time_tmp=3000;setTimeout("closetoast()",time_tmp )} //关闭窗口的方法 function closetoast(){ $("#toastcenter").hide(); $("#mask_tmp").css("display","none"); }http://download.csdn.net/detail/hejias/9192953
或者showsucess()
或者showsucess()
0 0
- html弹出提示showtoast
- Html 右下角弹出提示框
- 微信小程序实例:开发showToast消息提示接口
- html关闭窗口不弹出提示框
- Html 弹出层 自定义提示信息
- html弹出提示框并实现拖动的源码
- 资源整合: 从托盘弹出Html消息提示框
- 用 js、html、css实现一个弹出提示控件:
- html判断音视频是否播放完毕后弹出提示
- HTML------简单的搜索框自动弹出内容提示
- 微信小程序 wx.showToast()
- 在右下角弹出提示
- 自动弹出提示框
- 弹出提示的效果
- 弹出提示的效果:
- 弹出一个提示对话框
- POPHint 弹出提示框
- POPHint 弹出提示框
- 使用android-resource-remover遇到的问题
- Cordova插件之友盟统计
- 处理机调度
- Mongo基本操作和命令
- 正则表达式基本语法
- html弹出提示showtoast
- [leetcode]Remove Duplicates from Sorted List
- java.lang.IllegalArgumentException: localizableString cannot be null
- MapReduce并行创建反向索引
- LOCOCO角点检测方法(一种快速精确的Harris及KLT)介绍
- 操作系统之我见-运行环境
- python中几个易混淆函数区别,append,join,insert
- 小心,apc可能导致php-fpm罢工!
- 校招笔试常考http状态码