FengShui1998
MIS
I have an ASP page that displays drop down menus. This used to work in IE5 but now I'm geting calls that it isn't working anymore with users that have IE6.
This is the code that creates the drop down. Does anyone have any ideas? Thanks.
fengshui_1998
function makeSub(num,subnum,text,link,total,target){
str=""
if(subnum==0) str='<div id="div'+this.name+'Sub'+num+'" class="cl'+this.name+'Subs">\n'
str+='\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'" class="cl'+this.name+'Sub">'
if(link) str+='<a href="'+link+'"'; else str+='<a href="#" onclick="'+this.name+'.menusub('+num+','+subnum+'); return false"'
if(target) str+=' target="'+target+'" '
str+=' class="clA'+this.name+'Sub">'+text+'</a></div>\n'
if(subnum==total-1){
str+='</div>\n'; this.submenus[num]=new Array()
this.submenus[num]["main"]=total; this.submenus[num]["submenus"]=new Array()
}
document.write(str)
}
This is the code that creates the drop down. Does anyone have any ideas? Thanks.
fengshui_1998
function makeSub(num,subnum,text,link,total,target){
str=""
if(subnum==0) str='<div id="div'+this.name+'Sub'+num+'" class="cl'+this.name+'Subs">\n'
str+='\t<div id="div'+this.name+'Sub'+num+'_'+subnum+'" class="cl'+this.name+'Sub">'
if(link) str+='<a href="'+link+'"'; else str+='<a href="#" onclick="'+this.name+'.menusub('+num+','+subnum+'); return false"'
if(target) str+=' target="'+target+'" '
str+=' class="clA'+this.name+'Sub">'+text+'</a></div>\n'
if(subnum==total-1){
str+='</div>\n'; this.submenus[num]=new Array()
this.submenus[num]["main"]=total; this.submenus[num]["submenus"]=new Array()
}
document.write(str)
}