Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    up N ya
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is up with my scroller? Any help apprciated!

    http://www.k9musicandfilm.com/index2.html

    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..
    HELP ME!

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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">
    .
    .
    .
    .
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    New Coder
    Join Date
    Aug 2002
    Location
    up N ya
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think its nesessary, but when I removed one I got error warnings...
    HELP ME!

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #5
    New Coder
    Join Date
    Aug 2002
    Location
    up N ya
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'll give it a shot. I've never done anyhting like this before so I might need some exaples...
    HELP ME!

  • #6
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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)
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #7
    New Coder
    Join Date
    Aug 2002
    Location
    up N ya
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:
    http://www.k9musicandfilm.com/index2.html

    Thanks...
    Last edited by B-pLeAsE; 10-20-2003 at 12:29 AM.
    HELP ME!

  • #8
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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) :-)
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #9
    New Coder
    Join Date
    Aug 2002
    Location
    up N ya
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:
    http://www.k9musicandfilm.com/index2.html

    here is the working original:
    http://www.k9musicandfilm.com/scroller/index.html

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

    What ya think up Kor?
    HELP ME!

  • #10
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #11
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #12
    New Coder
    Join Date
    Aug 2002
    Location
    up N ya
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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....
    HELP ME!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •