Vertical Scrollbar Disappears in FireFox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quddusaliquddus
    New Member
    • May 2009
    • 23

    Vertical Scrollbar Disappears in FireFox

    I am running this: http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

    It works fine except the vertical scrollbar disappears when the image is clicked.

    What should I do?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Which vertical scrollbar? Is this on the linked page or in your code?

    Comment

    • quddusaliquddus
      New Member
      • May 2009
      • 23

      #3
      When i run the code - the scrollbar disappears in the page im running the code in.

      Comment

      • quddusaliquddus
        New Member
        • May 2009
        • 23

        #4
        BTW - it works fine when run in a empty website - but if i run ti in a page with other scripts it makes the vertical scrollbar disappaear. any ideas why?

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Without your code, I couldn't say.

          Comment

          • quddusaliquddus
            New Member
            • May 2009
            • 23

            #6
            Would you like me to post the HTML code?

            Comment

            • quddusaliquddus
              New Member
              • May 2009
              • 23

              #7
              If I add these scripts to the page then it goes wrong:

              Code:
                     <script id="1" type="text/javascript" src="js/jquery.js"></script>
                      
                      <script id="2" type="text/javascript" src="js/interface.js"></script>
                  
                      <style type="text/css">
              		    a.active {
              			    font-weight: bold;
              		    }
              		    div.inactive {
              			    display: none;
              		    }
                      </style>
                      
                      <link href="style.css" rel="stylesheet" type="text/css" />
                  
                      <script id="3" type="text/javascript" src="searchPage.js"></script>
              Last edited by acoder; Jun 29 '09, 03:31 PM. Reason: Added [code] tags

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                All of the relevant code, but if it's quite a bit, either post a link or upload/attach the file(s) here.

                Comment

                • quddusaliquddus
                  New Member
                  • May 2009
                  • 23

                  #9
                  I just tested it out. The conflict is with a dock menu's interface.js that I've been using:



                  If I add <script id="2" type="text/javascript" src="js/interface.js"></script>

                  then the scrollbar doesnt work.

                  Comment

                  • quddusaliquddus
                    New Member
                    • May 2009
                    • 23

                    #10
                    It might be something to do with this function in scrolltopcontro l.js

                    Code:
                    	scrollup:function(){
                    		if (!this.cssfixedsupport) //if control is positioned using JavaScript
                    			this.$control.css({opacity:0}) //hide control immediately after clicking it
                    		var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
                    		if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
                    			dest=jQuery('#'+dest).offset().top
                    		else
                    			dest=0
                    		this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
                    	},
                    I think maybe when it checks to see if control is positioned using javascript - it finds that the scrollbar fits the description.
                    Last edited by acoder; Jun 29 '09, 05:48 PM. Reason: Added [code] tags

                    Comment

                    • acoder
                      Recognized Expert MVP
                      • Nov 2006
                      • 16032

                      #11
                      It may well be, but I would need to see it in action via a link or the actual code uploaded.

                      Please use [code] tags when posting code. Thanks.

                      Comment

                      Working...