Create a QQ User-Defined Control

Source: Internet
Author: User

<% @ Control Language = "C #" autoeventwireup = "true" codefile = "qfonline. ascx. cs" inherits = "controls_qqonline" %>
<Div id = "div1" style = "width: 100px; Height: 200px; position: absolute; left: 15px; top: 100px; padding: 15px;">
<Table width = "90" border = "0" style = "padding: 0;">
<Tr>
<TD colspan = "2">

</TD>
</Tr>
<Tr>
<TD class = "tdyan" style = "width: 40px" style = "border-Right: 0; "> </TD>
<TD class = "tdyan" style = "border-left: 0; width: 66px;"> online services </TD>
</Tr>
<Tr>
<TD colspan = "2" class = "tdyan"> <a href = "http://sighttp.qq.com/cgi-bin/check? Sigkey = Signature "; onclick =" Var tempsrc = 'HTTP: // sighttp.qq.com/wpa.js? Rantime = '+ math. random () + '& sigkey = comment'; var oldscript = document. getelementbyid ('testjs'); var newscript = document. createelement ('script'); newscript. setattribute ('type', 'text/JavaScript '); newscript. setattribute ('id', 'testjs'); newscript. setattribute ('src', tempsrc); If (oldscript = NULL) {document. body. appendchild (newscript);} else {oldscript. paren Tnode. replaceChild (newscript, oldscript);} return false; "> </a> </TD>
</Tr>
<Tr>
<TD colspan = "2" class = "tdyan"> <a href = "http://sighttp.qq.com/cgi-bin/check? Sigkey = Signature "; onclick =" Var tempsrc = 'HTTP: // sighttp.qq.com/wpa.js? Rantime = '+ math. random () + '& sigkey = comment'; var oldscript = document. getelementbyid ('testjs'); var newscript = document. createelement ('script'); newscript. setattribute ('type', 'text/JavaScript '); newscript. setattribute ('id', 'testjs'); newscript. setattribute ('src', tempsrc); If (oldscript = NULL) {document. body. appendchild (newscript);} else {oldscript. paren Tnode. replaceChild (newscript, oldscript);} return false; "> </a> </TD>
</Tr>
<Tr>
<TD colspan = "2" class = "tdyan"> & nbsp; </TD>
</Tr>
<Tr>
<TD colspan = "2" class = "tdyan"> & nbsp; </TD>
</Tr>
<Tr>
<TD colspan = "2"> </TD>
</Tr>
<Tr>
<TD colspan = "2"> </TD>
</Tr>
</Table>
</Div>
<SCRIPT type = "text/JavaScript">
<! --
VaR I = 0, STR = ""; while (I ++ <100) {STR + = "<br> "}
Document. Write (STR );
VaR DIV = Document. getelementbyid ("div1 ");
Var y = parseint (Div. style. Top );
Setinterval (function (){
VaR Cy = parseint (Div. style. Top );
VaR DY = Document. Body. scrolltop | document.doc umentelement. scrolltop;
Div. style. Top = (CY + (dy-(Cy-y) * 0.1) + "PX ";
}, 10 );
// -->
</SCRIPT>
<Style type = "text/CSS">
TD {
Margin: 0px;
}
Td {
Margin-left: 10px;
}
. Tdyan {
Text-align: center;
Border-left: 2px # 9cf solid;
Border-Right: 2px # 9cf solid;
Font-size: 12px;
 
}

</Style>

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.