Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: stopable scroll bar

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default stopable scroll bar

    Hello
    I am looking for a script that will allow me to have the scroll bar stop and not scroll further than I choose.

    I want to have a person scroll to view the page but only so far . I want to be able to put text on my page after the scroll bar has been stopped and be sure that no one can scroll to vew.
    Has anyone seen anything that will accomplish this for me?

    Its okay I am not crazy I just have a plan I need this for.

  2. #2
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't know much about script, but you may be able to get the result you need by using frames. i.e. a header and a footer where the scroll is disabled on the footer?

    johnny b

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Could you tell us your plan? Maybe there is a simpler solution to it.

  4. The Following User Says Thank You to Snookerman For This Useful Post:

    patdan (11-26-2008)

  5. #4
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    I don't see why you'd need this, why not just simply hide the div in the first place, or remove it all together :S

  6. #5
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    I want a person to be able to view only information I want to make available to them.

    I also want to put some information on a page that is not viewable to the eye. search engines I don't care about.

    I just want to be able to add somethings on the page that the general public can not view.

    So for example people could scroll say 3/4 of the page and then the scroll bar does not reveal the rest of the page.
    I know I could hide it by color but that will not serve my purpose either.
    Thanks for thinking about my problem

    Thanks for the frame idea but I would rather not use frames.

  7. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Don't know about the scroll idea, but you could use css like this:
    HTML Code:
    <div id="hide">Who shot JFK</div>
    CSS:
    Code:
    #hide {
    	visibility:hidden;
    }

  8. The Following User Says Thank You to Snookerman For This Useful Post:

    patdan (11-26-2008)

  9. #7
    Join Date
    Sep 2008
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post

    Cool

    Quote Originally Posted by patdan View Post
    I want a person to be able to view only information I want to make available to them.

    I also want to put some information on a page that is not viewable to the eye.
    You could remove the scroll bar altogether so that some content would not be accessible.

    <body scroll="no">
    content for general public
    <p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
    Hidden Content
    </body>

    However, depending on the screen resolution, the user may or may not be able to view this.


    Even if you find a way to disable the scroll bar 3/4 of the way, the "hidden" content would be revealed by a ctrl a, ctrl c, or by simply viewing the source.

    Hope this Helps!

    ______________________________________
    science dictionary
    science bucket
    Last edited by lanta99; 11-26-2008 at 10:46 PM. Reason: sig

  10. The Following User Says Thank You to lanta99 For This Useful Post:

    patdan (11-26-2008)

  11. #8
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't know if this may help or not, but I once altered a js file in a flash presentation, so as to hide unwanted swf content that I could not access.

    In that case I increased the contentHeight from 100% to maybe 110%:
    var contentWidth = "100%";
    var contentHeight = "110%";

    Anyway it worked - with no scrollbar - and the bottom 10% did not display.

  12. #9
    Join Date
    Jul 2008
    Location
    Serbia
    Posts
    47
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    Hi,

    If you wont to hide browser scroller you will need to insert this in your css:

    Code:
    html {
    overflow: hidden;
    }
    it will work for horizontal and vertical. And user can't move mouse up and down if you don't let him.

  13. #10
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    As I understand, he/she wants to completely hide the content. Your solution does not do that since it's dependent on the screen size of the user. It is also possible to "scroll" by marking and draging the page down.

Bookmarks

Posting Permissions

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