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 8 of 8
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Edinburgh, UK
    Posts
    402
    Thanks
    2
    Thanked 1 Time in 1 Post

    Unhappy Layer/div Scroll?

    I'm having a problem with my DIV's. I have created several layers using the <DIV> tag. On several of these layers there is a lot of text. i want to be able to scroll this up and down but ONLY the text! i don't want any of the other layers to move, as this wouldn't have the effect that i want to achieve. i need it to work on Internet Explorer. I don't care which version, as i have the latest and i'll just run simple script to check the users version, if need be.
    I would be VERY grateful if someone could help. I realise it may not be possible with JavaScript, but if someone knows of another language that would work, and possible even a "script" i would be grateful for that too!
    I do hope someone can help me.
    Many thanks in advance,
    Rich

    "An expert is a person who has made all the mistakes that can be made in a very narrow field."

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Netherlands
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Take a look at the zip-file I've included......
    It's a neat script created in Dreamweaver.

    MrPink

    Oh...... I forgot this: you should put the images in a directory called 'img'.
    Attached Files Attached Files
    Last edited by MrPink; 06-24-2002 at 11:30 AM.
    *** Don't eat yellow snow ***

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Graz (Austria)
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up it is possible with javascript

    I did it with javascript.

    I can show you how, but you have to wait a little bit, 'cause i'm studying for an exam and have no extra time for such things.

    Wait a few days and you will see

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Just set the following CSS properties:

    width: myWidth;
    height: myHeight;
    overflow: scroll;

    That will work in IE and Gecko.

  • #5
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DHTML Central

    try this site it has great stuff and has some coding for a script similar what you are talking about:

    DHTML Central
    thank you.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    MrPink,
    Nice. However, while the script has code for NN4, unfortunately on my NN4.51 (which I keep as a cross-browser test) it does not work. I cant yet spot why.

    G

  • #7
    New Coder
    Join Date
    Jun 2002
    Location
    Netherlands
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    NS and layers

    Netscape isn't very good with layers..... For that I'm starting to dis-like Netscape (even NS6!)

    Someone else helped me out with a similar problem of mine: 'Put the <div>-tags right after de <body>-tag.'

    Maybe it helps....

    Quasibobo
    *** Don't eat yellow snow ***

  • #8
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Graz (Austria)
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question still interested

    is somebody still interested in the way who i solved the problem of scrolling layers/divs or the file in an other frame?

    If yes i'll post my source code


  •  

    Posting Permissions

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