php 简单提示框自定义函数
- <?php
- /*php简单提示框自定义函数*/
- function alert ($msg,$url="")
- {
- $str = <script type="text/javascript">;
- $str.="alert(".$msg.");";
- if ($url != "")
- {
- $str.="window.location.href={$url};";
- } else {
- $str.="window.history.back();";
- }
- echo $str.=</script>;
- }
- ?>
/phprm/24517.htmlwww.phpzy.comtrue/phprm/24517.htmlTechArticlephp 简单提示框自定义函数 ?php /*php简单提示框自定义函数*/ function alert ($msg,$url="") { $str = script type="text/javascript"; $str.="alert(".$msg.");"; if ($url != "") { $str.="window.location.href={$url};"; } else { $...
PHP之友评论