loaction on the scroll bar.

Discussion in 'JavaScript' started by yuri1992, Mar 28, 2008.

  1. #1
    hello pepole,

    how i set in javascript the loction of the scroll bar ?

    for exp.
    i have some page that i wanna that the scrool start from specifical location.?
     
    yuri1992, Mar 28, 2008 IP
  2. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
  3. So1

    So1 Peon

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it uses to scroll document. TopicStarter want to place scroll bar (i suppose like that is when place frame or iframe).

    Hmmm. Why i can not place links? =((
     
    So1, Mar 28, 2008 IP
  4. yuri1992

    yuri1992 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hello,

    i have some code

    HTML Code:
    <STYLE>
    .scrollingDiv {
    width:650px;
    height:550px;
    text-align:right;
    background-color:#FFFFFF;

    overflow-y:scroll;
    overflow:auto;
    }
    </STYLE>
    <div id=jumptohere class="scrollingDiv">
    .
    .
    .
    .
    .
    .
    bla
    </div>
    how i put the scrool loction the word bla ?
     
    yuri1992, Mar 29, 2008 IP
  5. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    put befure bla
    <a name="asdf"></a>
    HTML:
    and then create a link somewhere in the page :
    <a href="#asdf">Go to bla</a>
    HTML:
    I hope it's what you want, If it isn't, tell me what you want again :)
     
    Morishani, Mar 29, 2008 IP