<htmlarea>

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

    <htmlarea>

    Hi everyone,

    The question is below :

    <br>
    <div style="position : absolute; width: 500px; height: 100px; overflow:
    auto; border: 1px solid blue;">

    I <b>can</b> include there some HTML code.<br>

    <div style="color: green">
    This is neat <b>BUT</b>:
    </div>

    My issue now is that I'd like to be able to scroll this content
    without using the scrollbar i.e :<br>
    by using the mousewheel (works only in IE)<br>
    and by using the keyboard arrows like in a normal textarea zone.<br>
    This is done in many webmail sites.<br>
    But how can I do that ?<br>
    Many thanks in advance for your answers !

    </div>
  • Dominique

    #2
    Re: &lt;htmlarea&gt ;

    Can't be done on an object like this
    The page it appears on gets preference when it comes to scrolling.. best bet
    is to use an iframe instead
    The just target it by dropping the content/HTML into it...


    "Buzzy" <buzzy_buz@hotm ail.com> wrote in message
    news:3f389a5.04 04010442.1c5caa 93@posting.goog le.com...[color=blue]
    > Hi everyone,
    >
    > The question is below :
    >
    > <br>
    > <div style="position : absolute; width: 500px; height: 100px; overflow:
    > auto; border: 1px solid blue;">
    >
    > I <b>can</b> include there some HTML code.<br>
    >
    > <div style="color: green">
    > This is neat <b>BUT</b>:
    > </div>
    >
    > My issue now is that I'd like to be able to scroll this content
    > without using the scrollbar i.e :<br>
    > by using the mousewheel (works only in IE)<br>
    > and by using the keyboard arrows like in a normal textarea zone.<br>
    > This is done in many webmail sites.<br>
    > But how can I do that ?<br>
    > Many thanks in advance for your answers !
    >
    > </div>[/color]


    Comment

    • Buzzy

      #3
      Re: &lt;htmlarea&gt ;

      "Dominique" <niques@webadst udio.com> wrote in message news:<c4h78t$p2 a$1@ctb-nnrp2.saix.net> ...[color=blue]
      > Can't be done on an object like this
      > The page it appears on gets preference when it comes to scrolling.. best bet
      > is to use an iframe instead
      > The just target it by dropping the content/HTML into it...[/color]

      You're right, thank you, it works with the mouse wheel if I use an
      iframe but I'd also like to be able to have my cursor in it and use
      the keyboard arrows like in the html areas that we use to have when
      composing a mail on a webmail site.

      Comment

      Working...