View Full Version : What is up with my scroller? Any help apprciated!

10-16-2003, 04:16 AM

I can't get that bugger to anchor in that cell. My problem is when anyone with a bigger or smaller screen resolution then 1024x768 looks at it the scrollers position is waaaaaaaaay off. thanks for your time yall.

I'll offer my webdesign help with anyone who needs it in return..

10-16-2003, 11:46 AM
seems like a complicate scroll, not a simple one...:-)

before trying to analyze that script... is there necessary to have 2 divs with same id?

<div id="myScrollContainer">
<div id="myScrollContent" style="width: 321; height: 248">

10-16-2003, 11:14 PM
I don't think its nesessary, but when I removed one I got error warnings...

10-17-2003, 08:02 AM
that is clear a matter of positioning.... You centered your main table, but the scroll is absolutelly positioned, so this is the reason for your problem. Now I see some solving ideeas:

- use relative postion for scroll (to any element you want)
- use relative position (to screen.availWidth) for the main table. And for the scroll either.

10-17-2003, 04:13 PM
I'll give it a shot. I've never done anyhting like this before so I might need some exaples...

10-18-2003, 09:16 AM
try change this:

d.write('#' + this.id + 'Container, #' + this.id + 'Content { position:relative; }')

and modufy and find the best left and top position here (I used 0, but you may try other values:

var test = new ypSimpleScroll("myScroll", 0, 0, 315, 129, 100)

10-19-2003, 11:21 PM
We're almost there. It stays in the correct place it just doesn't have the same effect it had before. Did I forget to do change somthing?

Here is the link:


10-20-2003, 08:40 AM
It's OK... you have to try now different values for the top and height of the divs, the envelope and the inner. For instance, as I said, I used "0" for the top enevelop div value, but it looks like your tag anchor (for the relative position), is somewere below, so try using even negative values, - 100, or -50 or...

The same with the height (of course, here you must use only positive values) :-)

10-21-2003, 04:47 AM
I've tried all kinds of values like you said to do, but nothing seems to have an effect or make any change at all.

here is the one with you mods:

here is the working original:

Maybe I missed somthing.. they dont seem to have the same scroll effect.

What ya think up Kor?

10-21-2003, 07:35 AM
There is no problem with IE6, but I reckon that the NS6> can not touch those buttons... I don't know exact why, but I suppose that there is a problem of z-index. If there is no z-index, the "layer" order is, usually, from bottom to tp = from user to background. But the way IE and NS see the non-z-indexed layers is different. The reason for NS does not "touch" the up/down buttons is that NS consider the text layed OVER the whole other objects (if no z-index specified), while IE consider it OVER only in the tag where the layer is anchored with a relative position.

Try reducing the height of the layer, and I think that, the moment the layer will have the height <= the TD's tag, the buttons will be touchable

10-21-2003, 07:39 AM
Try understand that "layer order problem" as the order of the sheets in an onion. Or like the layers order in a Photoshop PSD document. Now, for NS, the scroll layer is considered the above sheet, so you can nou "touch" (even you can see - becouse the layer is transparent) anything bellow.

10-21-2003, 09:16 PM
KOR, you've been a big help, but I think maybe I should just go with a regular I frame and forget putting that scroller there... Again thanks for the help, you were the only one who replied to my thread and thats apprciated....

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum