javascript problem with Mozilla and IE
-
It works fine in IE, but seems nothing happens in Mozilla. COuld anyone help me out? There is a tree view of displaying Catagory and sub-catagories. they are both read from database. Anyhow it has no effect in firefox mozilla. help.. The codes are here: function opencat(cat,img) { if(cat.style.display=="none"){ cat.style.display=""; document.images[img].src="images/class2.gif"; } else { cat.style.display="none"; document.images[img].src="images/class1.gif"; } } <% dim rss,rs2,ii,i set rss = server.CreateObject ("adodb.recordset") set rs2 = server.CreateObject ("adodb.recordset") sql="select * from gb_category" rss.open sql,conn,1,1 if rss.eof and rss.bof then response.write "No Main Category" else i=1 do while not rss.eof %> <% rss.movenext i=i+1 loop end if rss.close set rs2=nothing set rss=nothing %>
[000 src="images/class1.gif" align=absMiddle><%=rss("cat_name")%>](javascript:void(0);)
000 style="DISPLAY: none"> <% rs2.open "select * from gb_sub_category where cat_id=" & rss("cat_id"),conn,1,1 if rs2.eof and rs2.bof then response.write "No Sub Category" else ii=1 do while not rs2.eof %>
"> <%=rs2("sub_cat_name")%>
<% rs2.movenext ii=ii+1 loop end if rs2.close %>