<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>ajax demo</title>
<script type="text/javascript" src="ratax.js"></script>
<script type="text/javascript" src="ajax.js"></script>
<style type="text/css">
#about { display: none; }
#scroll {
border: 1px solid black;
overflow: auto;
height: 40ex;
margin-bottom: 8px;
}
#scroll p {
margin: 0;
padding: 2px 2px;
font-family: Tahoma;
font-size: 11px;
}
.timestamp, .channel {
font-size: 9px;
margin-right: 4px;
color: #888;
}
.username {
font-weight: bold;
padding-right: 3px;
}
.msg {
}
.sysmsg {
color: #88f;
font-style: italic;
}
</style>
<script type="text/javascript">
function $id(id) { return document.getElementById(id); }
/* Inicializar el script */
function init() {
chat.setInput( $id('say') );
chat.setOutput( $id('scroll') );
chat.startPolling();
}
</script>
</head>
<body onload="init();">
<div id="channel">
<div id="scroll">
</div>
<form action="" method="post">
<div id="input">
<input type="text" id="say">
<!--
<input type="button" value="send" >
<input type="button" value="get" >
-->
</div>
</form>
</div>
</body>
</html>