G
GarryJones
I needed to hide and show som DIV sections,
There are many scripts on the net for this. I downloaded that allows
me to open a hidden DIV from inside a DIV than is itself hidden. This
accomplished I was pleased with my work.
That was until I saw the mess in Firefox which ignores everything I
tell it to do and opens all the DIVs regardless on load. Forgetting
the browser war jargon as to why Firefox would release a program that
doesn't work with common code I just need a way of doing this so it
works in Firefox AND MSIE and anything else out there.
function InsertContentmed(tid) {
if (
document.getElementById(tid).style.display == "none") {
document.getElementById(tid).style.display = "";
document.regfrms.cgfnm.focus();
}
else {
document.getElementById(tid).style.display = "none";
}
}
I am opening and closing a hidden DIV with a click call. (It opens it
when it is closed and it closes it when it is open, The other standard
way of doing this does not work for me as I need this to work from
withing a parent DIV that is itself opened by another Javascript
function.
Any and all help greatly appreciated
Garry Jones
Sweden
There are many scripts on the net for this. I downloaded that allows
me to open a hidden DIV from inside a DIV than is itself hidden. This
accomplished I was pleased with my work.
That was until I saw the mess in Firefox which ignores everything I
tell it to do and opens all the DIVs regardless on load. Forgetting
the browser war jargon as to why Firefox would release a program that
doesn't work with common code I just need a way of doing this so it
works in Firefox AND MSIE and anything else out there.
function InsertContentmed(tid) {
if (
document.getElementById(tid).style.display == "none") {
document.getElementById(tid).style.display = "";
document.regfrms.cgfnm.focus();
}
else {
document.getElementById(tid).style.display = "none";
}
}
I am opening and closing a hidden DIV with a click call. (It opens it
when it is closed and it closes it when it is open, The other standard
way of doing this does not work for me as I need this to work from
withing a parent DIV that is itself opened by another Javascript
function.
Any and all help greatly appreciated
Garry Jones
Sweden