PDA

View Full Version : Javascript menu help



scp
Nov 28th, 2002, 11:16 AM
I am trying to create a menu, which is supposed to be vertical with the submenu items coming out horizontally. I can't get the links to work on the submenu - the links work if the submenu items are text, but not if they are images. The line creating the submenu items is:
document.write("<a href=\""+ali[1]+"\" target="+ali[2]+" style='cursor:hand;position:absolute;width:"+api[10]+";height:"+api[11]+";top:"+this.top+";left:"+this.left+"' onmouseover='container["+counter+"].container["+nr+"].container["+nri+"].onmouseover();' onmouseout='container["+counter+"].container["+nr+"].container["+nri+"].onmouseout();' ><div id='"+this.id+"' style='width:"+api[10]+";height:"+api[11]+";visibility:hidden;background-color:"+api[13]+";color:"+api[21]+";font-size:"+api[22]+";font-family:"+api[23]+";"+api[24]+"'><img src=\""+ali[0]+"\"></div></a>")