img title not appearing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mh99
    New Member
    • Sep 2008
    • 6

    img title not appearing

    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 :

    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
  • mh99
    New Member
    • Sep 2008
    • 6

    #2
    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...

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

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

      Comment

      • RamananKalirajan
        Contributor
        • Mar 2008
        • 608

        #4
        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

        Comment

        • mh99
          New Member
          • Sep 2008
          • 6

          #5
          Originally posted by RamananKaliraja n
          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.

          Comment

          • mh99
            New Member
            • Sep 2008
            • 6

            #6
            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...

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

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

              Comment

              • mh99
                New Member
                • Sep 2008
                • 6

                #8
                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.
                Code:
                <div id="menu">
                
                </div>       
                <br>
                
                <div style="top: 411px;" id="move">
                
                
                
                
                
                <br>
                <div id="boite" class="global_acces">
                <div class="haut_acces">&nbsp;</div>
                <div class="milieu_acces" style="min-height: 96px;">
                  <ul>
                    <li>
                        <a href="#">M</a>
                    </li>
                    <li>
                        <a href="#">Me</a>
                    </li>
                    <li>
                        <a href="#">F</a>
                    </li>
                    <li>
                        <a href="#">R</a>
                    </li>
                  </ul>
                </div>
                <div class="bas_acces"></div>
                </div>
                </div>

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  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?
                  Last edited by acoder; Sep 5 '08, 02:51 PM. Reason: Corrected grammar

                  Comment

                  • mh99
                    New Member
                    • Sep 2008
                    • 6

                    #10
                    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_Scrol l;

                    I have IE6... And no link, sorry.

                    Comment

                    • acoder
                      Recognized Expert MVP
                      • Nov 2006
                      • 16032

                      #11
                      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.

                      Comment

                      Working...