@H_301_0@本文实例讲述了PHP实现通用alert函数的方法。分享给大家供大家参考。具体如下:
@H_301_0@函数:通用提示
参数:提示訊息,類型或網址,窗口名或函數名,延时毫秒
Alert("","function","close2",300);
@H_301_0@代码如下:
<div class="jb51code">
<pre class="brush:PHP;">
function Alert($Str,$Typ="back",$TopWindow="",$Tim=100){
echo "".chr(10);
Exit();
}