1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<title>JWChat - Collections</title>
5
<meta http-equiv="content-type" content="text/html; charset=utf-8">
6
<script src="switchStyle.js"></script>
7
<script src="jsjac.js"></script>
10
var ie5 = document.all&&document.getElementById;
13
var myTable = document.getElementById('myTable');
15
if (parent.top.srcW.is.ie) {
16
myTable.cellSpacing = 0;
17
myTable.cellPadding = 0;
19
myTable.width = '100%';
22
var rows = myTable.getElementsByTagName("TBODY").item(0).childNodes;
23
for (var i=0; i<rows.length; i++) {
24
rows[i].onmouseover = highlightRow;
25
rows[i].onmouseout = unhighlightRow;
26
rows[i].onclick = rowClicked;
27
rows[i].title = "click to select collection";
30
function highlightRow(e) {
31
var row = ie5 ? event.srcElement.parentNode : e.target.parentNode;
32
row.className = 'highlighted';
34
function unhighlightRow(e) {
35
var row = ie5 ? event.srcElement.parentNode : e.target.parentNode;
36
if (row != selectedRow)
41
function rowClicked(e) {
43
selectedRow.className = '';
44
selectedRow = ie5 ? event.srcElement.parentNode : e.target.parentNode;
45
selectedRow.className = 'highlighted';
50
var aIQ = new JSJaCIQ();
52
aIQ.setTo(srcW.loghost);
56
{'xmlns': 'http://jabber.org/protocol/archive',
58
'start': selectedRow.getAttribute('start')});
60
srcW.Debug.log(aIQ.xml(),2);
64
srcW.con.send(aIQ,target.handleCollGet);
68
<style type="text/css">
69
body { background-color: white; }
72
border-bottom: 1px solid black;
76
border-bottom: 1px solid black;
82
background-color: highlight;