1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
| <html>
<head>
<title>SA-Box</title>
<style>
<!--
div.chat
{
overflow: auto;
width: 156px;
height: 150px;
border: 1px #757575 solid;
padding: 3px;
background: #72ADFD;
}
div.miniform
{
width: 156px;
border: 1px #757575 solid;
border-top: 0px;
padding: 3px;
background: #72ADFD;
text-align: center;
}
.date
{
color: #111111;
font-family:Arial;
font-size: 7pt;
}
.pseudo
{
color: #0066ff;
font-family: Arial;
font-size: 8pt;
font-weight: bold;
text-transform: capitalize;
}
.msg
{
color: #0066ff;
font-family: Arial;
font-size: 8pt;
font-weight: normal;
text-decoration: none
}
hr.chat
{
clear: both;
width: 95%;
border: 0; /* enleve toute bordure */
border-bottom: #0066ff 1px solid; /* une seule bordure (sinon firefox met une bordure en haut ET en bas mais pas IE */
height: 2px; /* pour IE */
color: #9EC6FD;
}
input[type=submit]:hover, input[type=button]:hover
{
font-family: Arial, sans-serif;
font-size: 8pt;
background-color: #9EC6FD;
border: #0066ff 1px solid;
color: #FFFFFF;
font-weight: bold;
padding-left: 3px;
padding-right:3px;
}
input[type=submit]:active, input[type=button]:active
{
border-style: inset;
}
img
{
border: 0;
}
input {
font-family: Arial, sans-serif;
font-size: 8pt;
background-color: #9EC6FD;
border: #48515A 1px solid;
color: #FFFFFF;
font-weight: bold;
padding-left: 3px;
padding-right:3px;
}
textarea {
font-family: Arial, sans-serif;
font-size: 8pt;
background-color: #9EC6FD;
border: #48515A 1px solid;
color: #0066ff;
padding-left: 3px;
padding-right:3px;
}
textarea:hover {
font-family: Arial, sans-serif;
font-size: 8pt;
background-color: #9EC6FD;
border: #0066ff 1px solid;
color: #0066ff;
padding-left: 3px;
padding-right:3px;
}
.link ul { /* remove bullets and list indents */
list-style: none;
margin: 0;
padding-left: 0px;
}
.link a{
font-family: Arial, sans-serif;
font-size: 8pt;
color: #0066ff;
padding-left: 3px;
background: url("http://computeam.free.fr/sa/php_test/images/external.png") center right no-repeat;
padding-right: 12px;
}
.link a:hover {
font-family: Arial, sans-serif;
font-size: 8pt;
color: #ffffff;
padding-left: 3px;
background: url("http://computeam.free.fr/sa/php_test/images/external.png") center right no-repeat;
padding-right: 12px;
}
-->
</style>
<script type="text/javascript">
//<![CDATA[
var req = false;
if(window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
} catch(e) {
req = false;
}
} else if(window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
req = false;
}
}
}
function update() {
if ( req.readyState == 4 ) {
element = document.getElementById("rand");
element.childNodes[0].nodeValue = req.responseText;
}
}
function go() {
if ( req ) {
req.open("GET", "chat.php", true);
req.onreadystatechange=update;
req.send(null);
setTimeout("go()", 2000);
}
}
go()
//]]>
</script>
</head>
<body>
<div class="chat" id="rand">
</div>
<div class="miniform">
<form method="post">
<?php
echo "<div class=\"link\"><font class=\"pseudo\">$user_name</font><br /><a href=\"#\">[Smileys]</a><a href=\"#\">[BBCode]</a></div>";
?>
<input name="pseudo" size="19" value="<?php echo $user_name ?>" type= "hidden"><br />
<textarea name="mess" cols="20" rows="3" onFocus="this.value='Tapez votre message ici'"></textarea><br />
<input name="submit" type="submit" value="POSTER"> <input name="submit" type="submit" value="REFRESH">
</form>
</div>
</body>
</html> |
Partager