Scrollbars within HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Siamak

    Scrollbars within HTML

    Hi,

    Is there a way to add a scrollbar within a html file, just like
    buttons and other form items.

    I want it to invoke an applet function every time a scrolling event
    occurs.

    Thank you,
    Siamak
  • William Tasso

    #2
    Re: Scrollbars within HTML

    Siamak wrote:[color=blue]
    > Hi,
    >
    > Is there a way to add a scrollbar within a html file, just like
    > buttons and other form items.[/color]

    No - although I suppose you could make some attempt at shoving too much
    content into a suitably styled container.
    [color=blue]
    > I want it to invoke an applet function every time a scrolling event
    > occurs.
    >[/color]

    With the greatest of respect: no you don't.

    What are you really trying to achieve?

    --
    William Tasso - http://WilliamTasso.com


    Comment

    • Philipp Lenssen

      #3
      Re: Scrollbars within HTML

      Siamak wrote:
      [color=blue]
      >
      > Is there a way to add a scrollbar within a html file, just like
      > buttons and other form items.
      >[/color]


      You can use CSS with overflow: scroll applied to a <div> in your HTML.
      Real question, as you've been asked already, is what you're trying to
      achieve in the end (not what form you imagine the solution to take).

      --
      Google Blogoscoped
      A daily news blog and community covering Google, search, and technology.

      Comment

      • Louis Somers

        #4
        Re: Scrollbars within HTML

        taati@dpir.com (Siamak) wrote in
        news:cf89d01f.0 312131159.713dc 74b@posting.goo gle.com:
        [color=blue]
        > Hi,
        >
        > Is there a way to add a scrollbar within a html file, just like
        > buttons and other form items.
        >
        > I want it to invoke an applet function every time a scrolling event
        > occurs.
        >
        > Thank you,
        > Siamak[/color]

        Unfortunately this only works in IE (at least in V6.1)

        <html><head>
        <script type="text/javascript" language="JavaS cript">
        function itscrolled(){
        pos.innerText = scrollform.scro ller.scrollLeft ;
        }
        </script>
        <title>Date and time</title>
        </head>
        <body>
        <p id="pos">No value yet</p>
        <form method="get" action="none" id="scrollform" >
        <textarea rows="1" cols="20" id="scroller" name="scroller"
        onScroll="itscr olled();" wrap="off">
        ________<snip> (lots of underscores) <snip>_________ ______
        </textarea>
        </form>
        </body></html>


        Opera and Firebird both don't support the OnScroll event, nither do they
        support the scrollLeft attribute (Opera returns the x position of the
        textarea). Havn't tried others yet.

        --
        News Updater, No cgi-bin or database needed

        Comment

        Working...