Forum Moderators: open

Message Too Old, No Replies

scrolling div element in mozilla problem

mouse wheel dosen't work on mozilla

         

knives

7:19 am on Aug 4, 2005 (gmt 0)

10+ Year Member




i have a problemwith mozilla browser why the mousewheel dosen't work on mozilla into the div element?

i can't scroll my div using the mousewheel.. anyone can explain me why?

JAB Creations

8:07 am on Aug 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ahh...this is a bug that effects my web-site.

The problem is a major bug in all Gecko 1.7 builds. I've actually started work on a color coded rendering engine icon. Gecko 1.7 will be in a yellow DIV as there are some known perky bugs such as the inability to scroll my site (1.0X versions...check HELP--ABOUT and look at the useragent Gecko version.

Version 1.8 fixes this and you can download a nightly build of Firefox (as well as Mozilla).

Firefox Nightly Builds...
[ftp.mozilla.org...]

I do occasionally have issues with extensions not working. Because of THIS bug you're posting about I use nightly builds (for the 1.8 gecko engine) intenionally and have been VERY anixiously awaiting 1.1 to go live (but now it's 1.5...dam it!)

There is a work around...

<div class="div-content" onmouseover="fixScroll(this);">
<a></a>

This will make overflow divs work better if not outright correctly in GECKO builds. It (if I remember correctly) will cause issues with (I think) Internet Exploiter.

If you serve this code you may want to do serverside detection of the useragent and see if their Gecko version (not build as build is the date) is less then 1.8. If it is not less then 1.8 or is not gecko...then don't seen that extra code.

I've since cleaned up my code from the old school example I gave you (the css class name)...

Anyway you can see a fully fledged overflow div in action by visiting my site as I use JS to correctly render it in as many possible browsers as possible (as pure CSS just can't pull it off).

If you can help me with the other post in detecting Gecko versions PLEASE do! I ahve other reasons (and good bugs) that I have to server color coded engine warnings for.

Also another bug is the autoscroll (middle button default...or scrollbutton default) for overflow items which has NOT been fixed in nightly builds yet.

knives

5:37 am on Aug 17, 2005 (gmt 0)

10+ Year Member



ok i don't know if this funcito will help you

//this function will detect the client browser
//it return the name and version
//for now we have only 3 browser namely the opera IE and Netscape

function detectBrowser(){
var browserInfo=new Object;
var useragent = navigator.userAgent;
var Browser = (useragent.indexOf('Opera') > -1)? 'Opera' : navigator.appName;
var pos = useragent.indexOf('MSIE');

if (pos > -1) {
Version = useragent.substring(pos + 5);
var pos = Version.indexOf(';');
var Version = Version.substring(0,pos);
}
if (Browser == "Netscape") {
var Version = useragent.substring(8);
var pos = Version.indexOf(' ');
var Version = Version.substring(0, pos);
}
var pos = useragent.indexOf('Opera');
if (pos > -1) {
Version = useragent.substring(pos + 6);
var pos = Version.indexOf(' ');
var Version = Version.substring(0, pos);
}

if (Browser == "Netscape" && parseInt(navigator.appVersion) >= 5) {
var pos = useragent.lastIndexOf('/');
var Version = useragent.substring(pos + 1);
}

browserInfo.version=Version;
browserInfo.name=Browser;

return browserInfo;

}