<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="./js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="./js/common.js"></script>
<style>
body,ul,li,h1,h3 {
padding:0;
margin:0;
border:0;
list-style: none;
}
body{background:#FFF ;font:12px/1.5 'Helvetica','Arial',Sans-serif}
.call{cursor:pointer}
#flashContent{float:left; background:#CCC;}
#messageContent{overflow:auto; width:598px; height:100px; border:1px solid #CCC}
#messageContent li{overflow:hidden; padding:5px 2px}
#calltouser{border-bottom: 1px solid #CCCCC; margin-bottom:10px}
</style>
</head>
<body>
<div style="width:600px; margin:0 auto; overflow:hidden">
<div id="flashContent"></div>
<div style="float:left; overflow:auto; width:180px; padding:0 10px">
<h3 id="calltouser"></h3>
<ul id="userList"></ul>
</div>
<div style="width:600px; overflow:hidden">
<ul id="messageContent"></ul>
<!--<textarea id="messageContent" style="width:99%; height:120px" readonly="readonly" onpropertychange="this.style.height=this.scrollHeight + 'px'"></textarea>-->
</div>
<div style="width:100%; overflow:hidden">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<th width="100"><input id="userItem" type="text" readonly="readonly" style="width:100px" value="所有人" /></th>
<th><input type="text" id="msgTxt" style="width:100%" /></th>
<td width="60"><button style="width:60px" onclick="sendMsg()">Send</button></td>
</tr>
</table>
</div>
</div>
<script type="text/javascript">
var ww = 400;
var hh = 300;
var swfDom = null;
var username;
var times = 0;
var timeHandler;
var caller = "";
var control = 0;
jQuery(function(){
hh = parseInt(screen.height* ww / screen.width);
viewFlash('./flash/p2p.swf','p2p',ww,hh,'#flashContent');
$('#msgTxt').bind('keypress',function(event){
if(event.keyCode == "13")
{
sendMsg();
}
});
})
</script>
</body>
</html>
评论3
最新资源