<a class="yykf11" href="{:U('House/yuyue',array('esfid'=>$house['esfid']))}" datatitle="预约看房">预约看房</a>
$().((e){ usertel=.(usertel)(!usertel){ e.()domain=...(domain)..=+domain+} })
/**
* 提示
* @param int $types
* @param string $error_str
* @param $url
*/
public static function alert_error($types = 1,$error_str = '非法操作',$url){
$str_msg = $error_str ;
switch ($types){
Case 1;
echo "<script language='javascript'>alert('".$str_msg."');history.back();</script>";
exit;
Case 2;
echo("<script language='javascript'>alert('".$str_msg."');self.location='".$url."';</script>");
exit;
Case 3;
echo("<script language='javascript'>alert('".$str_msg."');window.close();</script>");
exit;
Case 4;
echo("<script language='javascript'>alert('".$str_msg."');</script>");
exit;
Case 5;
echo("<script language='javascript'>alert('".$str_msg."');top.location='".$url."';</script>");
exit;
Case 6;
echo("<script language='javascript'>alert('".$str_msg."');self.location.reload();</script>");
exit;
Case 16;
echo("<script language='javascript'>alert('".$str_msg."');window.opener.parent.location.reload();self.close()</script>");
exit;
Case 17;
echo("<script language='javascript'>window.opener.parent.location.reload();self.close()</script>");
exit;
Case 18;
echo("<script language='javascript'>window.close();</script>");
exit;
Case 19;
echo("<script language='javascript'>alert('".$str_msg."');window.opener.location='".$url."';window.close();</script>");
exit;
Case 7;
echo("<script language='javascript'>top.location='".$url."';</script>");
exit;
Case 8;
echo("<script language='javascript'>top.leftFrame.location.reload();alert('".$str_msg."');self.location='".$url."';</script>");
exit;
Case 9;
echo("<script language='javascript'>alert('".$str_msg."');parent.location='".$url."';</script>");
exit;
Case 10;
echo("<script language='javascript'>self.location='".$url."';</script>");
exit;
Case 11;
echo("<script language='javascript'>alert('".$str_msg."'); window.opener.location.reload(); window.close(); </script>");
exit;
Case 12;
echo("<script language='javascript'>alert('".$str_msg."'); window.close(); </script>");
exit;
Case 13;
echo("<script language='javascript'>top.location.reload();</script>");
exit;
Case 14;
echo("<script language='javascript'>parent.location.reload();</script>");
exit;
Case 15;
echo("<script language='javascript'>parent.location=top.location.href;</script>");
}
}
本文转自 liang3391 51CTO博客,原文链接:http://blog.51cto.com/liang3391/1932863