In my page, I have a floating menu and always after scrolling, the tooltips(attrib ute "title") don't appear on images(tag "img"). The images are not in the menu, and the menu moves vertically. I have this problem only with ie. This the javascript for my menu :
The element "menu" is another menu but this one is static. The one scrolling is "move"
Thanks for your help
Code:
var vObjetScroll = document.documentElement.scrollTop;//window.pageYOffset;
var vObjetMenuBox = findPos(document.getElementById("menu"))+document.getElementById("menu").offsetHeight;
var vIntMovePx = document.getElementById("move").style.top.length;
var vIntPositionBox = document.getElementById("move").style.top.substring(0, vIntMovePx-2);
if(vObjetScroll<vObjetMenuBox) {
var vIntAncienPositionScroll = vObjetScroll;
vObjetScroll+=vObjetMenuBox+10;
vObjetScroll-=vIntAncienPositionScroll;
}
if(mBooleanLoad==false) {
document.getElementById("move").style.top=vObjetMenuBox;
mBooleanLoad= new Boolean(true);
}
else {
if(vIntPositionBox<vObjetScroll && vIntPositionBox!=vObjetScroll) {
vIntPositionBox+=30;
if(vIntPositionBox>vObjetScroll) {
vIntPositionBox=vObjetScroll;
}
document.getElementById("move").style.top=vIntPositionBox;//+"px";
}
else if(vIntPositionBox>vObjetScroll && vIntPositionBox!=vObjetScroll) {
vIntPositionBox-=30;
if(vIntPositionBox<vObjetScroll) {
vIntPositionBox=vObjetScroll;
}
document.getElementById("move").style.top=vIntPositionBox;//+"px";
}
else{}
}
The element "menu" is another menu but this one is static. The one scrolling is "move"
Thanks for your help
Comment