hi all,
i m rendering the html and javascript from a
java file using a
string buffer . the requirement is menu should work in nn4+,ie4+ browsers. i m checking the browser using doc.all for ie4 , doc.getelementbyid for ie6,nn6.. and doc.layers for nn4.
the menu comes in a nested table in the page.. as it has layouts.
i m using div. nn4 requires div to be absolutely positioned.but when i change it to relative for doc.all.. the image doesnt get displayed the first time the page is loaded only in doc.all browsers. if i put a alert .. it works. i dont want it to be absolute becoz the positions wil have to be hardcoded and it wont be efficient code..
the toggle part is working fine..
the below javascript code is in a function which is called in onload of html.
the logic is bit bad i feel ..but had to do those to make it work in netscape 4(4.79) versions.
code in html body.
sorry had some problem with html submitting ..so syntax is wrong.