Connecting Tech Pros Worldwide Forums | Help | Site Map

img title not appearing

Newbie
 
Join Date: Sep 2008
Posts: 6
#1: Sep 4 '08
In my page, I have a floating menu and always after scrolling, the tooltips(attribute "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 :

Expand|Select|Wrap|Line Numbers
  1.  
  2. var vObjetScroll = document.documentElement.scrollTop;//window.pageYOffset;
  3.     var vObjetMenuBox = findPos(document.getElementById("menu"))+document.getElementById("menu").offsetHeight;
  4.     var vIntMovePx = document.getElementById("move").style.top.length;
  5.     var vIntPositionBox = document.getElementById("move").style.top.substring(0, vIntMovePx-2);
  6.  
  7.     if(vObjetScroll<vObjetMenuBox) {
  8.         var vIntAncienPositionScroll = vObjetScroll;
  9.         vObjetScroll+=vObjetMenuBox+10;
  10.         vObjetScroll-=vIntAncienPositionScroll;
  11.     }
  12.  
  13.     if(mBooleanLoad==false) {
  14.         document.getElementById("move").style.top=vObjetMenuBox;
  15.         mBooleanLoad= new Boolean(true);
  16.     }
  17.     else {
  18.         if(vIntPositionBox<vObjetScroll && vIntPositionBox!=vObjetScroll) {
  19.  
  20.             vIntPositionBox+=30;
  21.  
  22.             if(vIntPositionBox>vObjetScroll) {
  23.                 vIntPositionBox=vObjetScroll;
  24.             }
  25.  
  26.             document.getElementById("move").style.top=vIntPositionBox;//+"px";
  27.         }    
  28.         else if(vIntPositionBox>vObjetScroll && vIntPositionBox!=vObjetScroll) {
  29.             vIntPositionBox-=30;
  30.  
  31.             if(vIntPositionBox<vObjetScroll) {
  32.                 vIntPositionBox=vObjetScroll;
  33.             }
  34.  
  35.             document.getElementById("move").style.top=vIntPositionBox;//+"px";
  36.         }
  37.         else{}
  38.     }
  39.  

The element "menu" is another menu but this one is static. The one scrolling is "move"

Thanks for your help

Newbie
 
Join Date: Sep 2008
Posts: 6
#2: Sep 5 '08

re: img title not appearing


Don't you understand something ? If you need more explanation, just ask me.
Or, is it you don't have any idea to help me ?

I have tried with the attribute "alt" too...
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#3: Sep 5 '08

re: img title not appearing


Can you also post the corresponding HTML code, i.e. "move" and "menu".
RamananKalirajan's Avatar
Needs Regular Fix
 
Join Date: Mar 2008
Location: Chennai - India
Posts: 350
#4: Sep 5 '08

re: img title not appearing


Quote:

Originally Posted by mh99

Don't you understand something ? If you need more explanation, just ask me.
Or, is it you don't have any idea to help me ?

I have tried with the attribute "alt" too...

You want to have a title (i.e. tooltip) on that iamge, is this ur requirement.

Regards
Ramanan Kalirajan
Newbie
 
Join Date: Sep 2008
Posts: 6
#5: Sep 5 '08

re: img title not appearing


Quote:

Originally Posted by RamananKalirajan

You want to have a title (i.e. tooltip) on that iamge, is this ur requirement.

Regards
Ramanan Kalirajan

Yes that's right. I have title attribute on all images of my page but when I pass with the mouse over the images, the tooltip doesn't appear... And I don't know why. I have this problem only after scrolling down.
Newbie
 
Join Date: Sep 2008
Posts: 6
#6: Sep 5 '08

re: img title not appearing


Quote:

Originally Posted by acoder

Can you also post the corresponding HTML code, i.e. "move" and "menu".

Sorry but for the html code, I can give it but it's too long and it is a code generated by BEA Portal...
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#7: Sep 5 '08

re: img title not appearing


Just look for the relevant parts and post an example, i.e. produce a short version that demonstrates the same problem.
Newbie
 
Join Date: Sep 2008
Posts: 6
#8: Sep 5 '08

re: img title not appearing


Quote:

Originally Posted by acoder

Just look for the relevant parts and post an example, i.e. produce a short version that demonstrates the same problem.

Expand|Select|Wrap|Line Numbers
  1. <div id="menu">
  2.  
  3. </div>       
  4. <br>
  5.  
  6. <div style="top: 411px;" id="move">
  7.  
  8.  
  9.  
  10.  
  11.  
  12. <br>
  13. <div id="boite" class="global_acces">
  14. <div class="haut_acces">&nbsp;</div>
  15. <div class="milieu_acces" style="min-height: 96px;">
  16.   <ul>
  17.     <li>
  18.         <a href="#">M</a>
  19.     </li>
  20.     <li>
  21.         <a href="#">Me</a>
  22.     </li>
  23.     <li>
  24.         <a href="#">F</a>
  25.     </li>
  26.     <li>
  27.         <a href="#">R</a>
  28.     </li>
  29.   </ul>
  30. </div>
  31. <div class="bas_acces"></div>
  32. </div>
  33. </div>
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#9: Sep 5 '08

re: img title not appearing


When you say scrolling down, do you mean with JavaScript code, or manually by the user? If by code, how do you trigger it?

Do you have a link? Also, what version(s) of IE? All of them?
Newbie
 
Join Date: Sep 2008
Posts: 6
#10: Sep 5 '08

re: img title not appearing


Quote:

Originally Posted by acoder

When you say scrolling down, do you mean with JavaScript code, or manually by the user? If by code, how do you trigger it?

Do you have link? Also, what version(s) of IE? All of them?

I'm scrolling down manually with an event javascript window.onscroll=function_Scroll;

I have IE6... And no link, sorry.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#11: Sep 5 '08

re: img title not appearing


A basic test based on what you've posted so far doesn't bring up any clues and I can't reproduce the problem.

What I would suggest you do is either produce a full, small reproducible version, or attach the relevant file(s) here.
Reply