当前位置:网站首页>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>');
}
边栏推荐
- 一大早支付宝来短信说你中“奖”了?处理服务器挖矿病毒 - kthreaddi
- ffmpeg获取首帧
- 视频号找到金钥匙,抖音模仿后来人
- Advantages of optical rain gauge over tipping bucket rain gauge
- Food safety | these two kinds of melons and fruits should be improved, especially for pregnant women with constipation
- js 数组(总结)
- 5 亿用户,比微信还早四年……这个运营了 15 年的 APP 即将永久停服
- 500million users, four years earlier than wechat... This app, which has been in operation for 15 years, will be permanently discontinued
- Numpy ndarray learning < I > Foundation
- 使用js直传oss阿里云存储文件,解决大文件上传服务器限制
猜你喜欢

12V pulse speed measurement to 24V level signal conversion transmitter

LabVIEW Linx toolkit controls Arduino equipment (expansion-1)

不懂就问,快速成为容器服务进阶玩家!

我在上海偶遇数字凤凰#坐标徐汇美罗城

视频号找到金钥匙,抖音模仿后来人
![[Multisim Simulation] LM339 zero crossing circuit simulation](/img/ca/f6dae5fd298c00570407c2bdfa5118.png)
[Multisim Simulation] LM339 zero crossing circuit simulation

小程序中的分页查询

疫情红利消失,「居家健身」泡沫消散

Zhengda cup hacker marathon data analysis competition

JS linked list 01
随机推荐
Numpy ndarray learning < II > miscellaneous records
头条文章_signature
JS queue
魏建军骑宝马也追不上李书福
Two of C language programming!! Role of
A good start
Baidu editor ueeditor, when editing too much content, the toolbar is not visible, which is not convenient for editing or uploading problems
High speed counter to rs485modbus RTU module ibf150
加速投资的小红书,“病急乱投医”?
c语言编程当中两个!!的作用
2021 肯特面试题1
js 链表 01
RF module wireless transceiver rf63u chip application data transmission and infrastructure network
flashfxp 530 User cannot log in. ftp
R语言使用fs包的file_delete函数删除指定文件夹下的指定文件、举一反三、dir_delete函数、link_delete函数可以用来删除文件夹和超链接
LwIP development | socket | TCP | client
Stm32cube infrared remote control: input capture
2021 亚鸿笔试题2
【Multisim仿真】LM339过零电路仿真
LabVIEW LINX Toolkit控制Arduino设备(拓展篇—1)