demo:
![](https://i.servimg.com/u/f49/17/39/61/74/anh_ch10.png)
Hướng dẫn:
cho vào over_footer:
![](https://i.servimg.com/u/f49/17/39/61/74/anh_ch10.png)
Hướng dẫn:
cho vào over_footer:
- Code:
<script type="text/javascript">
$(function(){
if (Number($("a.mainmenu[href^='/privmsg'] strong").text()) > 0){
var a = $("a.mainmenu[href^='/privmsg'] strong").text();
var b = confirm("Bạn có "+a+" tin nhắn mới.Bạn có muốn đến hộp thư.");
if( b == true){location.href = '/privmsg?folder=inbox'};
};
});
</script>