web即时通讯1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script>
    self.onError
=null;
    currentX 
= currentY = 0;  
    whichIt 
= null;   
            lastScrollX 
= 0; lastScrollY = 0;
    NS 
= (document.layers) ? 1 : 0;
    IE 
= (document.all) ? 10;

    
function hidenbox1(o)
        {
                o.style.visibility 
= "hidden";
        }
    
function heartBeat() 
    {
        
if(IE) 
        { 
            diffY 
= document.body.scrollTop; diffX = document.body.scrollLeft; }
        
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
        
if(diffY != lastScrollY) {                    percent = .1 * (diffY - lastScrollY);
                    
if(percent > 0) percent = Math.ceil(percent);
                    
else percent = Math.floor(percent);                    if(IE) document.all.iwebsmsfloater.style.pixelTop += percent;
                    
if(NS) document.iwebsmsfloater.top += percent;                     lastScrollY = lastScrollY + percent;
        }
        
if(diffX != lastScrollX) {
            percent 
= .1 * (diffX - lastScrollX);
            
if(percent > 0) percent = Math.ceil(percent);
            
else percent = Math.floor(percent);
            
if(IE) document.all.iwebsmsfloater.style.pixelLeft += percent;
            
if(NS) document.iwebsmsfloater.left += percent;
            lastScrollX 
= lastScrollX + percent;
        }    
    }    
    
function checkFocus(x,y) { 
            stalkerx 
= document.iwebsmsfloater.pageX;
            stalkery 
= document.iwebsmsfloater.pageY;
            stalkerwidth 
= document.iwebsmsfloater.clip.width;
            stalkerheight 
= document.iwebsmsfloater.clip.height;
            
if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) 
            
return true;
            
else 
            
return false;
    }    
    
function grabIt(e)
    {
    
if(IE) {
            
            whichIt 
= event.srcElement;
            
while (whichIt.id.indexOf("iwebsmsfloater"== -1) {
                whichIt 
= whichIt.parentElement;
                
if (whichIt == null
                {
                    document.onmousemove 
= null;
                    document.onmouseup 
= null;
                    
return true;
                }
                
else
                {
                    currentX 
= (event.clientX + document.body.scrollLeft);
                       currentY 
= (event.clientY + document.body.scrollTop); 
                       document.onmousemove 
= moveIt;
                    document.onmouseup 
= dropIt;
                    
                }
                
            }
            
               
        } 
else { 
                window.captureEvents(Event.MOUSEMOVE);
            
if(checkFocus (e.pageX,e.pageY)) { 
                    whichIt 
= document.iwebsmsfloater;
                    StalkerTouchedX 
= e.pageX-document.iwebsmsfloater.pageX;
                    StalkerTouchedY 
= e.pageY-document.iwebsmsfloater.pageY;
            }         }
        
return true;
    }
    
function moveIt(e) {
        
if (whichIt == null) { return false; }
        
if(IE) 
        {
            newX 
= (event.clientX + document.body.scrollLeft);
            newY 
= (event.clientY + document.body.scrollTop);
            distanceX 
= (newX - currentX);    distanceY = (newY - currentY);            currentX = newX;    currentY = newY;
            whichIt.style.pixelLeft 
+= distanceX;            whichIt.style.pixelTop += distanceY;
            
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;            if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
            
if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
            
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
            event.returnValue 
= false;
        } 
        
else 
        {
            whichIt.moveTo(e.pageX
-StalkerTouchedX,e.pageY-StalkerTouchedY);
                
if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
                
if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
                
if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
                
if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
                
return false;
        }
        
return false;
    }
    
function dropIt() {
        whichIt 
= null;
        
if(NS) window.releaseEvents(Event.MOUSEMOVE);
        
return true;
    }
    
if(NS) {
        window.captureEvents(Event.MOUSEUP
|Event.MOUSEDOWN);
        window.onmousedown 
= grabIt;
         window.onmousemove 
= moveIt;
        window.onmouseup 
= dropIt;
    }
    
if(IE) 
    {
        document.onmousedown 
= grabIt;
         document.onmousemove 
= moveIt;
        document.onmouseup 
= dropIt;
    }
    
if(NS || IE) action = window.setInterval("heartBeat()",1);

</script>
</head>
<body>
<div id=iwebsmsfloater style=position:absolute;left:800px;top:150px;VISIBILITY:visible;z-index:1024>

<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title></title>
</head>
<body>
    
<STYLE TYPE=text/css>
        .iwebsms_f12
        
{
            font-size
:12px;cursor:hand;
        
}
        .iwebsms_move
        
{
            cursor
:move;
        
}
        .iwebsms_link:link
        
{
            font-size
:12px;
            color
:#000000;
            text-decoration
:none;
        
}
        .iwebsms_link:visited
        
{
            font-size
:12px;
            color
:#000000;
            text-decoration
:none;
        
}
        .iwebsms_link:active
        
{
            font-size
:12px;
            color
:#000000;
            text-decoration
:none;
        
}
        .iwebsms_link:hover
        
{
            font-size
:12px;
            color
:#000000;
            text-decoration
:none;
        
}
    
</STYLE>
    
<TABLE WIDTH=120 BORDER=0 CELLPADDING=0 CELLSPACING=0 ID="Table1">
    
<TR>
        
<TD WIDTH=99><IMG SRC=http://service.iwebsms.com/images/float/QQ/top_menu.gif WIDTH=99 HEIGHT=23 CLASS=iwebsms_move></TD><TD><IMG id=top_close SRC=http://service.iwebsms.com/images/float/QQ/top_close.gif WIDTH=21 HEIGHT=23 onclick=hidenbox1(iwebsmsfloater)></TD>
    
</TR>
    
<TR>
        
<TD COLSPAN=2><IMG SRC=http://service.iwebsms.com/images/float/QQ/top_move.gif WIDTH=120 HEIGHT=59 CLASS=iwebsms_move></TD>
    
</TR>
    
</TABLE>
        
        
    
<TABLE WIDTH=120 BORDER=0 CELLPADDING=0 CELLSPACING=0 ID="Table2">
        
<TR ALIGN=CENTER VALIGN=TOP> 
            
<TD BACKGROUND=http://service.iwebsms.com/images/float/QQ/iweb_bg.gif COLSPAN=2>
                
<TABLE WIDTH=100 BORDER=0 CELLPADDING=0 CELLSPACING=5 ID="Table3">
                    
<TR><TD WIDTH=14><IMG SRC=http://service.iwebsms.com/images/float/QQ/i_logo.gif WIDTH=14 HEIGHT=16></TD><TD CLASS=iwebsms_f12 VALIGN=BOTTOM onclick=Open_13901397457()>dodo</TD></TR>
                    
<TR><TD WIDTH=14><IMG SRC=http://service.iwebsms.com/images/float/QQ/i_logo.gif WIDTH=14 HEIGHT=16></TD><TD CLASS=iwebsms_f12 VALIGN=BOTTOM onclick=Open_13426112983()>技术部</TD></TR>
                    
<TR><TD WIDTH=14><IMG SRC=http://service.iwebsms.com/images/float/QQ/i_logo.gif WIDTH=14 HEIGHT=16></TD><TD CLASS=iwebsms_f12 VALIGN=BOTTOM onclick=Open_13611308460()>合作部</TD></TR>
                    
<TR><TD WIDTH=14><IMG SRC=http://service.iwebsms.com/images/float/QQ/i_logo.gif WIDTH=14 HEIGHT=16></TD><TD CLASS=iwebsms_f12 VALIGN=BOTTOM onclick=Open_13511001056()>销售部</TD></TR>
                    
<TR><TD WIDTH=14><IMG SRC=http://service.iwebsms.com/images/float/QQ/i_logo.gif WIDTH=14 HEIGHT=16></TD><TD CLASS=iwebsms_f12 VALIGN=BOTTOM onclick=Open_01087993339()>市场部</TD></TR>
                
</TABLE>
            
</TD>
        
</TR>
        
<TR><TD COLSPAN=2><IMG SRC=http://service.iwebsms.com/images/float/QQ/qq.gif WIDTH=120 HEIGHT=21 CLASS=iwebsms_move></TD></TR>
        
<TR>
            
<TD BACKGROUND=http://service.iwebsms.com/images/float/QQ/iweb_bg.gif COLSPAN=2>
                
<TABLE WIDTH=100 BORDER=0 CELLPADDING=0 CELLSPACING=5 ID="Table4">
                    
<TR><TD WIDTH=30 align=right><img height='16' alt='点击这里给我发消息' src='http://wpa.qq.com/pa?p=4:767366:4' border='0' align=right></TD><TD CLASS=iwebsms_f12 VALIGN=BOTTOM><href='http://wpa.qq.com/msgrd?V=1&amp;Uin=767366&amp;Site=suridea.com&amp;Menu=yes' target='blank'  CLASS=iwebsms_link>767366</a></TD></TR>
                
</TABLE>
            
</TD>
        
</TR>
        
<TR>
            
<TD COLSPAN=2><IMG SRC=http://service.iwebsms.com/images/float/QQ/down.gif WIDTH=120 HEIGHT=23 CLASS=iwebsms_move>
            
</TD>
        
</TR>
    
</TABLE>
</body>
</html>

</div>


<div id=pagedialog style='Z-INDEX:1000;VISIBILITY:hidden; POSITION:absolute;left:0px;top:0px;'>
    
<TABLE cellpadding=0 cellspacing=0 width=450 ID="Table5">
        
<TR>
            
<TD>
                
<TABLE cellpadding=0 cellspacing=0 width=100% ID="Table6">
                    
<TR>
                        
<TD WIDTH=75>
                            
<IMG SRC=iwebsms.gif BORDER=0>
                        
</TD>
                        
<TD background=top_bg.gif>&nbsp;</TD>
                        
<TD WIDTH=21 onclick=hidenbox1(pagedialog)><IMG SRC=close.gif BORDER=0></TD>
                    
</TR>
                
</TABLE>
            
</TD>
        
</TR>
        
<TR>
            
<TD bgcolor=#F0F7FF>
                
<TABLE cellpadding=0 cellspacing=0 width=100% ID="Table7">
                    
<TR>
                        
<TD background=left_bg.gif WIDTH=5>
                            
<IMG SRC=left_bg.gif BORDER=0>
                        
</TD>
                        
<TD width=54 valign=top align=center>
                            
<IMG SRC=http://service.iwebsms.com/images/dot.gif WIDTH=54 HEIGHT=10 BORDER=0><IMG SRC=iwebsms_logo.gif BORDER=0>
                        
</TD>
                        
<TD width=386 valign=top>
                            
<TABLE cellpadding=0 cellspacing=0 width=100% ID="Table8">
                                
<TR>
                                    
<TD height=25 style='FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #132b9b' valign=bottom id=mtmsg> </TD>
                                
</TR>
                                
<TR>
                                    
<TD>
                                        
<TABLE cellpadding=0 cellspacing=0 width=95% ID="Table9">
                                            
<TR>
                                                
<TD WIDTH=3><IMG SRC=center_left_top.gif BORDER=0></TD>
                                                
<TD background=center_top_bg.gif><IMG SRC=center_top_bg.gif BORDER=0></TD>
                                                
<TD WIDTH=3><IMG SRC=center_right_top.gif BORDER=0></TD>
                                            
</TR>
                                            
<TR>
                                                
<TD background=center_left_bg.gif><IMG SRC=center_left_bg.gif BORDER=0></TD>
                                                
<TD height=50 bgcolor=#ffffff valign=top>
                                                    
<TABLE cellpadding=2 cellspacing=2 ID="Table10"><TR><TD style='FONT-SIZE: 12px; COLOR:132b9b' id=dialogmsg></TD></TR></TABLE>
                                                
</TD>
                                                
<TD background=center_rigth_bg.gif><IMG SRC=center_rigth_bg.gif BORDER=0></TD>
                                            
</TR>
                                            
<TR>
                                                
<TD WIDTH=3><IMG SRC=center_left_down.gif BORDER=0></TD>
                                                
<TD background=center_down_bg.gif><IMG SRC=center_down_bg.gif BORDER=0></TD>
                                                
<TD WIDTH=3><IMG SRC=center_right_down.gif BORDER=0></TD>
                                            
</TR>
                                        
</TABLE>
                                    
</TD>
                                
</TR>
                                
<TR>
                                    
<TD align=right height=30 id=dialogok></TD>
                                
</TR>
                            
</TABLE>
                        
</TD>
                        
<TD background=right_bg.gif WIDTH=5><IMG SRC=right_bg.gif BORDER=0></TD>
                    
</TR>
                
</TABLE>
            
</TD>
        
</TR>
        
<TR>
            
<TD>
                
<TABLE cellpadding=0 cellspacing=0 width=100% ID="Table11">
                    
<TR>
                        
<TD WIDTH=8><IMG SRC=down_left.gif BORDER=0></TD>
                        
<TD background=down_bg.gif><IMG SRC=down_bg.gif BORDER=0></TD>
                        
<TD WIDTH=8><IMG SRC=down_right.gif BORDER=0></TD>
                    
</TR>
                
</TABLE>
            
</TD>
        
</TR>
    
</TABLE>
</div>

</body>
</html>
posted @ 2006-07-21 11:10  烈马狂生  阅读(1443)  评论(1编辑  收藏  举报