Closed Thread Icon

Topic awaiting preservation: onmousemove Pages that link to <a href="https://ozoneasylum.com/backlink?for=8131" title="Pages that link to Topic awaiting preservation: onmousemove" rel="nofollow" >Topic awaiting preservation: onmousemove\

 
Author Thread
Quarath
Bipolar (III) Inmate

From: Magna, UT
Insane since: May 2000

posted 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.

The only common thing I have seen so far I think is they both use onmousemove calls.

Can anyone help me with a way to seperate the 2 so they don't interfere with each other?

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted 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.

Your pal, -doc-

Quarath
Bipolar (III) Inmate

From: Magna, UT
Insane since: May 2000

posted posted 03-30-2002 08:48

Great!

Here is that section. Do you think this is all of it?

// capture the events that will be happening.

if (Zflag.NS &#0124; &#0124; Zflag.opera) {
window.captureEvents(Event.MOUSEMOVE

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 03-30-2002 12:30

This ought to be easy. You've already commented out the offending bits, now go to your "handleIt()" function and add as the first line a call to my "moveHandler()" function, it should work.

Your pal, -doc-

Quarath
Bipolar (III) Inmate

From: Magna, UT
Insane since: May 2000

posted 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/



[This message has been edited by Quarath (edited 03-31-2002).]

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted 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!

(Here's a funny thing, I built a mod on my homepage that uses a whole bunch of similar functions, which I never released or showed to anybody else, at http://www.ozones.com/ourWalls/v11.html - check it out. Ironic how these things work in our heads, eh?)

Your pal, -doc-

Quarath
Bipolar (III) Inmate

From: Magna, UT
Insane since: May 2000

posted 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?

Also I noticed you are calling up the Zscroller from your links with something like. href="javascript:showWin(2)" I've looked at the showWin(num) function but I can't figure out how you are calling the diferenet Divs with different content. I know the numbers must point to different content. Is there an array somewhere that defines the divs and content location for each of your Zscroll windows. In Zscrollbar2 It looks like the <div id="divCont"> <div id="floatContent"> are the only things llisted to be displayed in the code. I'm not quite sure how to make make a function universal to be used with multiple div id's yet. This stuff is coming to me but I'm feeling overwhelmed sometimes and want to make things happen now not wait till I can learn everything.

Thanks for all your help on this I really appreciate it.


WOW I like that mod. I like how it only moves when you get to certain coordinates on the left and right sides rather than a modified cursor chaser.



I'm not sure why it seems to be preloading at the top and then jumping down it didn't seem to do that before. Also used to seem to slide in smoother than it currently does. There may be some code that is slowing down the entire animation.

[This message has been edited by Quarath (edited 04-01-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu