<div class="codetitle"> <span><a style="CURSOR: pointer" data="98492" class="copybut" id="copybut98492" onclick="doCopy('code98492')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code98492"> <br>/*—————————————————— */ <br>//– 简单提示框函数 <br>/*—————————————————— */ <br>function alert ($msg,$url=") <br>{ <br>$str = '<script type="text/javascript">'; <BR>$str.="alert('".$msg."');"; <br><br>if ($url != ") <BR>{ <BR>$str.="window.location.href='{$url}';"; <BR>} <BR>else <BR>{ <BR>$str.="window.history.back();"; <BR>} <BR>echo $str.='</script>'; <br>} <br> </div>