File Not Found
Guest
- Author
- File Not Found
- Contributors
- N/A
- Quickbar Entry
-
javascript: function getElementsByClass(searchClass, node, tag)
{var classElements = new Array();
if (node == null) node = document;
if (tag == null) tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^|\\s)" + searchClass + "(\\s|$)");
for (i = 0, j = 0;i < elsLen;i++)
{if (pattern.test(els[i].className))
{classElements[j] = els[i];
j++;
}
}
return classElements;
}
posters = '';
listArray = getElementsByClass("igmline small");
posters =[];
for (i = 0;i < listArray.length - 1;i++)
{posters[i] = listArray[i].getElementsByTagName("a")[0].firstChild.nodeValue;
}
alert(posters);
- Public?
- Public
The below will list all users who have posted on the current page of a thread on your tribe forum.
Again however, this version is currently only setup to work if you "Open forum in a new window"
[spoil]
[/spoil]
Again however, this version is currently only setup to work if you "Open forum in a new window"
[spoil]
Code:
javascript: function getElementsByClass(searchClass, node, tag)
{var classElements = new Array();
if (node == null) node = document;
if (tag == null) tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^|\\s)" + searchClass + "(\\s|$)");
for (i = 0, j = 0;i < elsLen;i++)
{if (pattern.test(els[i].className))
{classElements[j] = els[i];
j++;
}
}
return classElements;
}
posters = '';
listArray = getElementsByClass("igmline small");
posters =[];
for (i = 0;i < listArray.length - 1;i++)
{posters[i] = listArray[i].getElementsByTagName("a")[0].firstChild.nodeValue;
}
alert(posters);
Upvote
0