PDA

View Full Version : [Cần Giúp] Thông báo tin nhắn đến



shen.tran
19-07-2011, 11:11 AM
Tình hình là khi gửi tin nhắn riêng thì mình muốn phần hiển thị tin nhắn đến là 1 khung thông báo , nhưng mình làm hoài mà không được , pro nào đã từng làm qua thì xin hướng dẫn mình với , thanks

Dunglx
19-07-2011, 07:04 PM
Cậu chèn cái này dưới cùng header nhé


<!-- Notification Alert -->
<style type="text/css">
.alert {
background-color:#F00;
width:100%;
height:30px;
color:#fff;
font-size:14px;
display:block;
}
.alert p {
padding:5px;
}
.alert a {
color:#ccc;
text-decoration:none;
}
.alert a:hover {
color:#fff;
text-decoration:underline;
}
#slidealert {
display: none;
height:auto;
padding-bottom:5px;
background-color: #F00;
}
#slidealert a {
text-decoration:none;
color:#CCC;
padding:5px;
}
#slidealert a:hover {
text-decoration:underline;
color:#fff;
}
</style>
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function ShowHide(){
$("#slidealert").animate({"height": "toggle"}, { duration: 1000 });
}
//]]>
</script>
<vb:if condition="$notifications_total">
<div class="alert">
<p><span style="text-decoration:blink; font-weight:bold;">Chú ý! {vb:raw bbuserinfo.username}</span> Bạn nhận được {vb:raw notifications_total} tin nhắn mới click <a onclick="ShowHide(); return false;" href="#"><b><font color=black size=4><u>vào đây</u></font></b></a> để xem .</div><div id="slidealert">{vb:raw notifications_menubits}<a onclick="ShowHide(); return false;" href="#">Đóng lại </a></div></p>
</vb:if>
<!-- Notification Alert End -->