If you see the “notifications” icon on facebook, when you have a new notification, or more, it will display how many(number) besides it with a red background.
How can I make something like this?
i want to apply this on http://jsfiddle.net/uckZp/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Facebook uses an API call to query the database to find out and return this number. If you want to do this specifically for facebook then look here http://developers.facebook.com/docs/reference/api/
If you wanted to make something similar for your own site then you will need a database and a load of server side code.
EDIT
How’s this – http://jsfiddle.net/uckZp/1/