1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<title>JWChat - Résultats recherche</title>
5
<meta http-equiv="content-type" content="text/html; charset=utf-8">
6
<script src="switchStyle.js"></script>
9
var ie5 = document.all&&document.getElementById;
12
var rows = document.getElementsByTagName('tr');
13
for (var i=1; i<rows.length; i++) {
14
rows[i].onmouseover = highlightRow;
15
rows[i].onmouseout = unhighlightRow;
16
rows[i].onclick = rowClicked;
17
rows[i].title = "clique pour choisir ligne";
20
function highlightRow(e) {
21
var row = ie5 ? event.srcElement.parentNode : e.target.parentNode;
22
row.className = 'highlighted';
24
function unhighlightRow(e) {
25
var row = ie5 ? event.srcElement.parentNode : e.target.parentNode;
26
if (row != selectedRow)
31
function rowClicked(e) {
33
selectedRow.className = '';
35
parent.document.getElementById('join_room_button').disabled = false;
37
selectedRow = ie5 ? event.srcElement.parentNode : e.target.parentNode;
38
selectedRow.className = 'highlighted';
42
<style type="text/css">
43
body { background-color: white; }
46
border-bottom: 1px solid black;
50
border-bottom: 1px solid black;
55
background-color: highlight;