Topic awaiting preservation: onmousemove (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Magna, UT |
posted 03-30-2002 07:16
Ok I'm having a conflict between Doc's Zscrollbar2.js file and a mousemove call in the main javascript mostly taken from Bugimus colorbar page. The Page is located at http://www.finlinson.com/design/ . If I move Soc call to Zscrollbar2.js to the end of the script tag on the main page the scrollbar works but the sliding horizontal cursor chaser doesn't and vice versa if i call Docs file before the main javascript tag. |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 03-30-2002 08:16
Yah, this is fixable, I should have thought of this earlier! Zscrollbar2 uses a function named moveHandler() which is called onMousemove, and you can only have one onMousemove call, much like the earlier problems with onload. I'd say that if you just add a call to moveHandler() to your own mousemove function, and eliminate the calls to onMousemove (at about line 60 in the Zscrollbar2.js file) then you can get this to work. I run into this myself when using that base script and ading all the other squirrely things I do to it, I'll have to think on a more elegant solution for this. |
Bipolar (III) Inmate From: Magna, UT |
posted 03-30-2002 08:48
Great! |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 03-30-2002 12:30 |
Bipolar (III) Inmate From: Magna, UT |
posted 03-31-2002 00:26
That worked thanks do you know why the slider jumps down about and inch when you clcik it and then you have to click n drag above it to control it. It makes really akward. is there a spot where I can adjust that. http://www.finlinson.com/design/ |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 03-31-2002 14:20
OK, I'm going to have to loók, I'm not sure exactly where we'll need to modify this offhand. What appears to be happening is that the amount off is exactly as much as the entore design moves down after it's loaded, notice that? So the scrollbar is still behaving as if it was up near the top like it was when the page first started loading. I'll track this down for you, but really think it's about time to release a "Zscrollbar3" script sometime soon! |
Bipolar (III) Inmate From: Magna, UT |
posted 03-31-2002 15:59
The actually positioning is being based off the div CenterDiv. Could some of the coding be looking for offset from the top of the page instead of top od Div? |