Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What worked in IE5 doesn't work in IE6

Status
Not open for further replies.
Apr 27, 1999
705
US
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=&quot;div'+this.name+'Sub'+num+'&quot; class=&quot;cl'+this.name+'Subs&quot;>\n'
str+='\t<div id=&quot;div'+this.name+'Sub'+num+'_'+subnum+'&quot; class=&quot;cl'+this.name+'Sub&quot;>'
if(link) str+='<a href=&quot;'+link+'&quot;'; else str+='<a href=&quot;#&quot; onclick=&quot;'+this.name+'.menusub('+num+','+subnum+'); return false&quot;'
if(target) str+=' target=&quot;'+target+'&quot; '
str+=' class=&quot;clA'+this.name+'Sub&quot;>'+text+'</a></div>\n'
if(subnum==total-1){
str+='</div>\n'; this.submenus[num]=new Array()
this.submenus[num][&quot;main&quot;]=total; this.submenus[num][&quot;submenus&quot;]=new Array()
}
document.write(str)
}
 
it may be the missing { in the if statements
if(subnum==0) {str='<div id=&quot;div'+this.name+'Sub'+num+'&quot; class=&quot;cl'+this.name+'Subs&quot;>\n'
str+='\t<div id=&quot;div'+this.name+'Sub'+num+'_'+subnum+'&quot; class=&quot;cl'+this.name+'Sub&quot;>' A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top