Analog QQ Message Reception

Source: Internet
Author: User

Connect:---> "Analog QQ drop-down list select image (Small white perfect version)"
We know that in the use of QQ, when your friend sent you a message, his head will keep flashing, until you look at the message, he was quiet down. The little white to do is to simulate this dongdong:
1, to message--> head flashing
First we take out the user list---if the user doesn't send a new message to you, then show the avatar when he registered, otherwise, the display of the picture for our special animated pictures (can also be on his pictures for JS special effects processing: a certain time to show, give people a flashing feeling), here gives the first method of code:
<script language=javascript>
var t
Online Members
T=outlookbar.addtitle (' My best friend ')
<%
Dim x ()
Dim y ()
Dim News
Dim thenews
Dim i
Dim j
News=false
I=0
Set Rs=server. CreateObject ("ADODB.") RecordSet ")
Sqlstr= "SELECT * from msg where receiver= '" &session ("Icqusername") & "' and state= ' new '"
Rs. Open sqlstr,conn,3,3
If not Rs. BOF Then
Do but not Rs. Eof
ReDim Preserve X (i)
ReDim Preserve Y (i)
X (i) =rs ("sender")
Y (i) =rs ("MsgId")
Rs. MoveNext
I=i+1
Loop
End If
Rs. Close
%>
Take out your online buddy list.
Session ("Icqusername") for your own
<%
Sqlstr= "SELECT * from userinfor where username <> '" &session ("Icqusername") & "' and Online=true '. ....."
' The above SQL statement is changed by your program
Rs.Open sqlstr,conn,1,1
Do as not rs.eof
For J=0 to I-1
If RS ("username") =x (j) Then
News=true
Thenews=y (j)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.