View Full Version : DIV Scroll Help
Emancipator
11-25-2005, 09:22 AM
I have a div box, which has a scroll which is hidden.. I want it to start at the bottom. So if it has 400 lines of text, rather then starting at the top and having you scroll down I want it to be already scrolled to the very bottom.
can somebody help me with the code I need? I have been hunting all over hells half acre with 0 luck. Thanks guys! the height so you know is NOT known..
Would this (http://radio.javaranch.com/pascarello/2005/07/18/1121709316718.html) help? Its designed to use a cookie and javascript to remember a div scroll postion. But I'm guessing you could skip the cookie bit, and just set the position.
Emancipator
11-25-2005, 11:12 AM
its for my game. Basically the chat window when people type a HUGE WHACK of text it doesnt go to the bottom as it should. I need a way to always push the scroll to the VERY bottom and bump text off the top. Know what i mean?
Blue Cat Buxton
11-26-2005, 06:06 AM
Why dont you just reverse the order you show the posts in, so the most recent is at the top?
Emancipator
11-26-2005, 12:21 PM
i rather not since I have never seen an in game chat where it was like that. I think my players would be confused.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.