GMail style lists
GMail style lists
Out of context: Reply #7
- Started
- Last post
- 12 Responses
- welded0
Here's the javascript:
// toggle visibility
function toggle(targetId){
if (document.getElementById){
target = document.getElementById( targetId );
if (target.style.display == "none"){
target.style.display = "hidden";
} else {
target.style.display = "none";
}
}
}Here's a typical link:
[a href="javascript:void(0);" onclick="toggle('uniqueIDofDiv... return false;"]Blah[/a]This technique works great and is very, very easy to modify to suit a particular task. (Now let's just see how NT parses the code...)