Topic awaiting preservation: Help Needed - Loop through li setting mouseover functions (All end up pointing to last one) (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
posted 12-07-2004 07:41
I have a function that loops through a ul and checks each li for a sub ul. code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
Nervous Wreck (II) Inmate From: UK |
posted 12-07-2004 12:03
Your problem is that in the line code: document.getElementById(parentId).onmouseover = function () { menu.showMenu(childId); };
code: new Function("menu.showMenu(" + childId + ");")
code: document.getElementById(parentId).childId = childId;
|
Paranoid (IV) Inmate From: France |
posted 12-07-2004 13:27
jjarman: " Any suggestions hints or tips on how to get this to work or make it simpler? " |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
posted 12-07-2004 14:13
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: France |
posted 12-07-2004 14:46 |
Nervous Wreck (II) Inmate From: |
posted 12-07-2004 18:19
Thanks POI! (and everyone who responed and helped!) |