Closed Thread Icon

Preserved Topic: Zscrollbar3 ??? Pages that link to <a href="https://ozoneasylum.com/backlink?for=18504" title="Pages that link to Preserved Topic: Zscrollbar3  ???" rel="nofollow" >Preserved Topic: Zscrollbar3  ???\

 
Author Thread
Quarath
Bipolar (III) Inmate

From: Magna, UT
Insane since: May 2000

posted posted 04-24-2002 06:43

Problem test site is http://www.finlinson.com/design/Zscroll/Zindex.htm

When you click ont eh slider it jumps down and scrolls offset the amount the CeeterDiv is from the top of the page. Doc's page does not do this. He is using Zscrollbar3 not Zscrollbar2 so I have delved into Zscrollbar3 and found these sections:
..............
cUp=0; cDown=0; cBar=0; mDown=0;onSlider=0;
...............
function EndE() { mDown=0;if (Zflag.IE) { return false;}}
function StartE() { mDown=1;if (cBar &#0124; &#0124; cDown &#0124; &#0124; cUp &#0124; &#0124; Zflag.IE) {
if (onSlider) {Zoffset = Ypos - Zobject[getZnum('Zslider')].top;} else {Zoffset = 0;}
return false; }}

function fix() {
if (mDown && cBar) {
if (Zoffset) where=Ypos-Zoffset;
else where = Ypos-(Zobject[getZnum('Zslider')].height/2);
.................


That are differnt with the Zoffset info added.

Zscrollbar2 shows

.....................
cUp=0; cDown=0; cBar=0; mDown=0;
......................
function EndE() { mDown=0;if (Zflag.IE) { return false;}}
function StartE() { mDown=1;if (cBar &#0124; &#0124; cDown &#0124; &#0124; cUp &#0124; &#0124; Zflag.IE) { return false; }}

function fix() {
if (mDown && cBar) {
where = Ypos-(Zobject[getZnum('slider')].height/2);
....................

I modifed Zscrollbar2 to this

.....................
cUp=0; cDown=0; cBar=0; mDown=0;onSlider=0;
....................
function EndE() { mDown=0;if (Zflag.IE) { return false;}}
function StartE() { mDown=1;if (cBar &#0124; &#0124; cDown &#0124; &#0124; cUp &#0124; &#0124; Zflag.IE) {
if (onSlider) {Zoffset = Ypos - Zobject[getZnum('slider')].top;} else {Zoffset = 0;}
return false; }}

function fix() {
if (mDown && cBar) {
if (Zoffset) where=Ypos-Zoffset;
else where = Ypos-(Zobject[getZnum('slider')].height/2);
..................

HTML Beauty gives no errors but I still have the same problem. Have I even got close to addressing this issue or am I way off? If I'm close what am I missing?


Quarath
Bipolar (III) Inmate

From: Magna, UT
Insane since: May 2000

posted posted 04-30-2002 23:05

Am I being Black listed or something?

not a single response......?


I know some of you guys have had overcome this. I am just trying to understand how.

docilebob
Maniac (V) Mad Scientist

From: buttcrack of the midwest
Insane since: Oct 2000

posted posted 04-30-2002 23:10

Sorry, Quarath. I can`t help but I`m sure someone with a brain will be by soon.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-01-2002 08:06

The following modifications should be done to the original ZscrollBar source (remove all things that you added from ozones.com)...

ZscollBar.js:

Replace moveHandler() and fix() functions with these:

--- start copy/paste ---

&nbsp;&nbsp;&nbsp;&nbsp;function moveHandler(e) {
&nbsp;&nbsp;&nbsp;&nbsp;if (!loaded) return false;
if (Zflag.NS

Quarath
Bipolar (III) Inmate

From: Magna, UT
Insane since: May 2000

posted posted 05-01-2002 21:59

Awsome MAX I'll give that a shot when I get home tonight.

« BackwardsOnwards »

Show Forum Drop Down Menu