کد :
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
<body>
<div class="portlet-body col-md-12" id="Div_bell" visible="false">
<div>
<div class="form-group curve" id="bellsuccess" visible="false">
<div class="alert alert-success fill fade in">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<i class="icon-check"></i><strong>تایید شد</strong> <span id="Sp_success" ></span>
</div>
</div>
<div class="form-group curve" id="belldanger" visible="false">
<div class="alert alert-danger fill fade in">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button><i class="icon-close"></i><strong>خطا!</strong> <span id="sp_danger" ></span>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
function divhide() {
$("#Div_bell").hide("slow");
clearInterval(myVar);
}
$(document).ready(function () {
var myVar = setTimeout(function () { divhide(); }, 5000);
});
</script>