you don't need DW to create javascript functions at all.
I find it much quicker and get FAR more efficient code to write from something scratch.
Code:
function toggle(eleID) {
var e = document.getElementById(eleID).style;
if (e.display == "block") {
e.display = "none";
e.visibility = "hidden";
} else {
e.display = "block";
e.visibility = "visible";
}
}
Not tested BTW just bashed out at the keyboard.
to use = onclick="toggle("elementID");"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|