Vertical Scrollbar Disappears in FireFox 
June 29th, 2009, 11:16 AM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 14,517
Provided Answers: 12 | | | re: Vertical Scrollbar Disappears in FireFox
Which vertical scrollbar? Is this on the linked page or in your code?
| 
June 29th, 2009, 03:06 PM
| | Newbie | | Join Date: May 2009
Posts: 13
| | | re: Vertical Scrollbar Disappears in FireFox
When i run the code - the scrollbar disappears in the page im running the code in.
| 
June 29th, 2009, 03:22 PM
| | Newbie | | Join Date: May 2009
Posts: 13
| | | re: Vertical Scrollbar Disappears in FireFox
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?
| 
June 29th, 2009, 03:52 PM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 14,517
Provided Answers: 12 | | | re: Vertical Scrollbar Disappears in FireFox
Without your code, I couldn't say.
| 
June 29th, 2009, 03:56 PM
| | Newbie | | Join Date: May 2009
Posts: 13
| | | re: Vertical Scrollbar Disappears in FireFox
Would you like me to post the HTML code?
| 
June 29th, 2009, 04:14 PM
| | Newbie | | Join Date: May 2009
Posts: 13
| | | re: Vertical Scrollbar Disappears in FireFox
If I add these scripts to the page then it goes wrong: - <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; June 29th, 2009 at 04:31 PM.
Reason: Added [code] tags
| 
June 29th, 2009, 04:29 PM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 14,517
Provided Answers: 12 | | | re: Vertical Scrollbar Disappears in FireFox
All of the relevant code, but if it's quite a bit, either post a link or upload/attach the file(s) here.
| 
June 29th, 2009, 04:32 PM
| | Newbie | | Join Date: May 2009
Posts: 13
| | | re: Vertical Scrollbar Disappears in FireFox
I just tested it out. The conflict is with a dock menu's interface.js that I've been using: http://www.ndesign-studio.com/blog/mac/css-dock-menu
If I add <script id="2" type="text/javascript" src="js/interface.js"></script>
then the scrollbar doesnt work.
| 
June 29th, 2009, 04:41 PM
| | Newbie | | Join Date: May 2009
Posts: 13
| | | re: Vertical Scrollbar Disappears in FireFox
It might be something to do with this function in scrolltopcontrol.js - 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; June 29th, 2009 at 06:48 PM.
Reason: Added [code] tags
| 
June 29th, 2009, 06:49 PM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 14,517
Provided Answers: 12 | | | re: Vertical Scrollbar Disappears in FireFox
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.
|  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,535 network members.
|