my problem with JS is:
1. pliz check this link www.futbalruza.sk in maximize window (see menu)
2. then do that again but not in maxime window !!! (see menu again)
what should i do with that problem? could anyone help me?????
The problem appears to be this line in mm.js (I don't know, there may be a similar problem in nn4.js and ie4.js)
Code:
pixMenuLeft = (screen.width-750)/2 - 10;
It is always setting the left of the menus to this same value, but if the window is resized, the position of the menu headers changes but this does not, so the alignment gets screwed. You need a way to get the current window width, instead of the screen width.
According to quirksmode.org
Code:
var x,y;
if (self.innerHeight) // all except Explorer
{
x = self.innerWidth;
y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
x = document.documentElement.clientWidth;
y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
x = document.body.clientWidth;
y = document.body.clientHeight;
}
Gets you the dimensions of the window in various browsers.
Kids, kids... you tried your best, and you failed miserably; the lesson is: never try.
first, sorry boys for my uncorrect post (in wrong place) im just new member so dont be angry :-)))
second, popup windows..... yes, they are irritated but one of them are necesary to be there.... but one will be deleted :-) i ll do it in coming future....
thirt, thanx for code, i ll try it, hope that will solve my problem..... :-)
dear HaganeNoKokoro, could you post you email for me. i would like to contact about this code and about how to implement this code to my website. thanx
Bookmarks