Hi all,
I have created the following script that will show/hide a menu based on
checkboxes. It works fine in Opera but not on IE6!
Does anybody knows a workaround this problem?
Thanks for your response.
Sergio
------------------------------------------------
<script language="JavaS cript" type="text/javascript">
function dodisplaytbyarr ay(thewhat) {
if (navigator.appN ame.indexOf("Mi crosoft",0) != -1) {
var docloc = "document.all." ,style = ".style";
}
var thearrays = new Array();
thearrays = thewhat.split(" |");
for (var i = 0; i < "+thearrays+".l ength; i++) {
eval(docloc+the arrays[i]+style+".visibi lity='visible'" );
eval(docloc+the arrays[i]+style+".positi on='relative'") ;
}
</script>
<form action="" method="post">
<div class="form-item"><div id="cat73|cat88 "><input type="checkbox"
class="form-checkbox" name="edit[Category][73]" value="73"
onchange="dodis playtbyarray('c at1')" > business</div>
<div style="visibili ty:hidden;posit ion:absolute;to p:0;left:0"
id="cat1"><inpu t type="checkbox" class="form-checkbox"
name="edit[Category][1]" value="1">-- agriculture</div>
<div style="visibili ty:hidden;posit ion:absolute;to p:0;left:0"
id="cat88"><inp ut type="checkbox" class="form-checkbox"
name="edit[Category][88]" value="88">-- B2B</div>
</form>
I have created the following script that will show/hide a menu based on
checkboxes. It works fine in Opera but not on IE6!
Does anybody knows a workaround this problem?
Thanks for your response.
Sergio
------------------------------------------------
<script language="JavaS cript" type="text/javascript">
function dodisplaytbyarr ay(thewhat) {
if (navigator.appN ame.indexOf("Mi crosoft",0) != -1) {
var docloc = "document.all." ,style = ".style";
}
var thearrays = new Array();
thearrays = thewhat.split(" |");
for (var i = 0; i < "+thearrays+".l ength; i++) {
eval(docloc+the arrays[i]+style+".visibi lity='visible'" );
eval(docloc+the arrays[i]+style+".positi on='relative'") ;
}
</script>
<form action="" method="post">
<div class="form-item"><div id="cat73|cat88 "><input type="checkbox"
class="form-checkbox" name="edit[Category][73]" value="73"
onchange="dodis playtbyarray('c at1')" > business</div>
<div style="visibili ty:hidden;posit ion:absolute;to p:0;left:0"
id="cat1"><inpu t type="checkbox" class="form-checkbox"
name="edit[Category][1]" value="1">-- agriculture</div>
<div style="visibili ty:hidden;posit ion:absolute;to p:0;left:0"
id="cat88"><inp ut type="checkbox" class="form-checkbox"
name="edit[Category][88]" value="88">-- B2B</div>
</form>
Comment