[thelist] Need some JS help - unobtrusive popup - based onCLASSnot id.

Jon Hughes hughesj at firemtn.com
Fri Jun 15 15:19:52 CDT 2007

Okay, I've got this:

function detpopup() {
	var allElems = document.getElementsByTagName('*');
	for (var i = 0; i < allElems.length; i++) {
		var thisElem = allElems[i];
		if (thisElem.className && thisElem.className ==
'detpopupcont') {
			thisElem.style.visibility = 'visible';

And I have this:

<img src="mypic.jpg" onmouseover="detpopup();">

And it WORKS!

... but it pops up EVERY 'detpopupcont' -  Is there a way to only pop up
the active one?  I really don't want to have separate id's/classes...

More information about the thelist mailing list