A site I'm working on is supposed to show different content for different browsers. The code I'm currently using works fine when viewed in Mozilla, IE or NN 6+. However, the display is messed up in NN 4. You can see the problem in action at The problem is the middle image. On load, the script correctly selects one of three images at random and places it inside a <DIV> tag. By clicking on little tabs below the image users can change the picture and clicking on the picture takes them to an appropriate page. The only thing that doesn't work is the position of the large image in NN4, it's off to the left. Any ideas how I could make it work? JS code for positioning the pic is:
if( Browser.shortName == "NN" ) {
div = "NNlayer";
document.layers[ div ].document.open();
document.layers[ div ].left=238;
document.layers[ div ].top = 240;
document.layers[ div ].document.write( slike_sredina[broj] );
document.layers[ div ].document.close();
};
Thanks..
if( Browser.shortName == "NN" ) {
div = "NNlayer";
document.layers[ div ].document.open();
document.layers[ div ].left=238;
document.layers[ div ].top = 240;
document.layers[ div ].document.write( slike_sredina[broj] );
document.layers[ div ].document.close();
};
Thanks..