国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設(shè)計 > 正文

一個基于web的QQ程序 1(xml+asp)

2019-11-18 20:33:16
字體:
供稿:網(wǎng)友
refresh.htm
=========
<HTML>
<HEAD>
<title>在線QQ</title>
<link rel="stylesheet" type="text/CSS" href="forum.css">
</HEAD>
<BODY onload=online() scroll=no topmargin="0" leftmargin="0" style="background-color: #8482C6; color:
#FFFFFF; border: 2 solid #FFFFFF; padding: 0">
<marquee><font color=black>如果關(guān)閉此窗口將失去在線QQ功能!</font></marquee>
<!--嘿嘿!!這里引用了ZEE的轉(zhuǎn)換代碼,用于解決無法顯示漢字的,本來還有一段的不過在俺用的時候,發(fā)現(xiàn)加上那一段就不行了,所以去掉了,有興趣的朋友可以到精華區(qū)去找一下zee的文章        -->
<script language="vbscript">
Function bytes2BSTR(vIn)
    strReturn=""
    For i=1 To LenB(vIn)
        ThisCharCode=AscB(MidB(vIn,i,1))
        If ThisCharCode<&H80 Then
            strReturn=strReturn&Chr(ThisCharCode)
        Else
            NextCharCode=AscB(MidB(vIn,i+1,1))
            strReturn=strReturn&Chr(CLng(ThisCharCode)*&H100+CInt(NextCharCode))
            i=i+1
        End If
    Next
    bytes2BSTR=strReturn
End Function
</script>
<!--漢字轉(zhuǎn)換函數(shù)結(jié)束  -->
<script language="javascript">
var lengt=0;
<!--消除右鍵功能-->
function no(){
    alert("不支持右鍵!");
    self.event.returnValue=false;
}
<!--彈出QQ對話框,見后面-->
function sqq(uid,id){
    window.open("sqq.asp?id="+id+"&uid="+uid,"_blank","width=400,height=180");
    }
<!--關(guān)鍵的函數(shù),用于顯示在線的會員-->
function online(){
        var xmlhttp = new ActiveXObject("Microsoft.xmlhttp");
        xmlhttp.open("post","online.asp",false);
        xmlhttp.send();
      var xmldom=new ActiveXObject("Microsoft.XMLDOM");
        xmldom.async=false;
        body=bytes2BSTR(xmlhttp.responseBody);
        xmldom.loadXML(body);
        if(xmldom.parseError.errorCode!=0){
            window.open("refresh2.asp","_self");<!--為了防止有些用戶不支持xml,所以用了一個備用的asp版的-->
            return
            }
        else{
        var uid=xmldom.documentElement.selectNodes("uid");
        var id=xmldom.documentElement.selectNodes("id");
        var sex=xmldom.documentElement.selectNodes("sex");
        var xx="";
        lengt=uid.length;
        for(var i=0;i<lengt;i++){
            var im="";
            if(id(0).text!="k") im="<img src=../jy/face/1.gif width=12 height=12>";
            xx=xx+im+"<font color=red onclick=sqq('"+uid(i).text+"','"+id(i).text+"') style='cursor:hand'
title='"+sex(i).text+"'>"+uid(i).text+"</font><br>";
            }
        disonline.innerHTML=xx;
        window.setTimeout("online()",3000);
    }
    }

</script>
<!--這個"resfresh4.asp"是用于當有自己的信息時彈出QQ對話框用的-->
<iframe src="refresh4.asp" width=0 height=2 marginwidth=0 marginheight=0 frameborder=0>  
</iframe>

<input type=button value=" 在線網(wǎng)友:" class=ddyinput2>
<div id=disonline style="height:230;overflow: auto"></div><br>
<!--這里用到了scriptlet技術(shù),你也可以試一下,和include差不多-->
<OBJECT data=i11.htm height=14 style="HEIGHT: 93px; WIDTH: 770px"
      type=text/x-scriptlet width=14 VIEWASTEXT></OBJECT>


</BODY>
</HTML>
好了,第一部分就到這里了!!




發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 崇礼县| 巴中市| 鄂托克前旗| 久治县| 茶陵县| 遂宁市| 宁德市| 留坝县| 潞城市| 连云港市| 东兴市| 岳阳市| 济宁市| 莒南县| 竹溪县| 义乌市| 买车| 治多县| 石台县| 札达县| 邹平县| 黎平县| 岗巴县| 弋阳县| 灵寿县| 莱西市| 洪湖市| 麻城市| 华坪县| 芮城县| 宁南县| 建昌县| 永丰县| 从化市| 长顺县| 大余县| 阿图什市| 中江县| 北票市| 兴山县| 交城县|