pankaj.ghadge Posted September 19, 2008 Share Posted September 19, 2008 I have created a div tag in that div tag i am adding values......after overflowing the value i have enabled the auto scroll property. like: overflow-y: auto;when i add the value in div scroll bar moves on upper side.....I don't want scroll it down manually.......... I want to see the latest entry..... in that div tag........................so please tell me how to do this....................... Link to comment Share on other sites More sharing options...
Kingy Posted September 19, 2008 Share Posted September 19, 2008 I think I know what you mean, have you tried the overflow hidden property? Link to comment Share on other sites More sharing options...
pankaj.ghadge Posted September 19, 2008 Author Share Posted September 19, 2008 I want to see the latest entry. Div tag is auto scroll....... when i add the value dynamically in the div tag the scroll bar moves on upper side......I don't want to scroll it down manually.........to see the latest entry .......... Link to comment Share on other sites More sharing options...
Kingy Posted September 19, 2008 Share Posted September 19, 2008 Right so instead of having to scroll it down manually you want it to scroll down automatically instead?So no matter what you enter into that box it'll just scroll by itself on screen? If that is indeed the case something like an HTML marquee is probably what you want.Like this? http://www.hypergurl.com/marquee.htmlIf not how are you adding your values to the div tag dynamically exactly? Do you have any code available? Link to comment Share on other sites More sharing options...
pankaj.ghadge Posted September 19, 2008 Author Share Posted September 19, 2008 Found the code...................i am taking the value from text box and on click event i am adding the value in div tag......... DivObj.scrollTop=DivObj.scrollHeight; Link to comment Share on other sites More sharing options...
Kingy Posted September 19, 2008 Share Posted September 19, 2008 Oh I see in terms of adding values, a little similar to the virtual keyboard I made. I have found an example of the scroll itself which is what I believe you want, but the values in this are called by ajax I think.I reckon you can combine the two ideas together? =) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.