当前位置:网站首页>Pop up layer prompt in the background
Pop up layer prompt in the background
2022-07-28 16:26:00 【Sun Fendou】
PHP Pop up in the background layer Tips
layermobile yes layer Available on mobile phone and computer layer Of layer.msg The principle is the same !
/** * @param $msg Pop up message * @param int $url Jump address * @param float $time delayed branch second */
function layerExit($msg, $url=-1, $time=1.5) {
echo '<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <script src="/static/index/js/jquery.min.2.1.4.js"></script> <script src="/static/index/js/layermobile/layer.js"></script></head><body style="background-color: #fff;">';
if (!empty($msg)) {
echo "<script>layer.open({content: '$msg',skin: 'msg',time: $time });</script>";
}
$time *= 1000;
if (is_numeric($url)) {
echo "<script>setTimeout(function(){window.history.go($url)}, $time);</script>";
} else {
echo "<script>setTimeout(function(){window.location.href = '$url'}, $time);</script>";
}
die('</body></html>');
}
边栏推荐
- IT远程运维是什么意思?远程运维软件哪个好?
- el-input限制只能输入规定的数
- 大地坐标系转换火星坐标系
- Why do most people who learn programming go to Shenzhen and Beijing?
- 2021 肯特面试题2
- Telecommuting can be easily realized in only three steps
- A program for judging the result of cyclic input
- SCI scientific paper writing Growth Camp (full version)
- 加速投资的小红书,“病急乱投医”?
- C language exception handling mechanism: jump function jump function setjmp/sigsetjmp and longjmp/siglongjmp
猜你喜欢

使用js直传oss阿里云存储文件,解决大文件上传服务器限制

加速投资的小红书,“病急乱投医”?

Deeply understand the fusing configuration of istio traffic management

How to measure the vibrating wire sensor by vibrating wire acquisition module?

IT远程运维是什么意思?远程运维软件哪个好?

2021 肯特面试题2

Mlx90640 infrared thermal imager temperature sensor module development notes (VIII)

Roson的Qt之旅#101 Qt Quick中的模型和视图

KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书

2021 肯特面试题3
随机推荐
不懂就问,快速成为容器服务进阶玩家!
mysql查询 limit 1000,10 和limit 10 速度一样快吗?如果我要分页,我该怎么办?
深入理解Istio流量管理的熔断配置
动态规划 --- 数位统计DP
2021 Kent interview question 2
软考 系统架构设计师 简明教程 | 软件调试
Zhaoqi science and technology innovation and entrepreneurship competition talent introduction platform, mass entrepreneurship and entrepreneurship competition high-level talent introduction
2021 Kent interview question 3
软件问题修复跟踪系统实战开发教程(上篇)
LwIP development | socket | TCP | client
Stm32cube infrared remote control: input capture
IT远程运维是什么意思?远程运维软件哪个好?
Common problems and precautions of remote serial port server (adapter) uart/i2c/1-wire/spi PS304
flashfxp 530 User cannot log in. ftp
Numpy ndarray learning < I > Foundation
1. Simple command line connection to database
Rosen's QT journey 101 models and views in QT quick
12V pulse speed measurement to 24V level signal conversion transmitter
Writing of factorial
Paging query in applet