If you put an iframe inside your div, I think you can use the iframe's scrollTo(x,y) method. I use this in the opposite direction to keep a chat window scrolled to the bottom. -Dov
-----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, July 18, 2005 2:21 PM To: CF-Talk Subject: OT: DHTML layer with scrolling I've create a DHTML div layer that users can show or hide as desired. This layer contains content that is too large to display in the size of the div, so I have used the overflow: scroll CSS property. This all works well except for one minor issue. When the div is opened then scrolled down a bit then closed, when it is re-opened the content is at the same scroll position. For this particular function, it should be back at the top of the content. Is there a way to control, I presume with JavaScript, the scroll position (only really has to work in IE6) of a div, similar to the entire window? -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212132 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54