SilentS Posted February 24, 2006 Share Posted February 24, 2006 I have a frame-layout with a simple javascript that lets me scroll the content in a frame with a <a>-tag instead of the ordinary scrollbar. It's based onOnClick="parent.thumbs.scrollTo(0,0)"Could I replace "parent.thumbs" with something similar pointing to the overflow area I've created? I've tried to use "div.scroll" and set it to overflow so a scrollbar appears and link the code in different ways nothing works. So is it even possible or do I have to use a frame to be able to scroll via this code?/Regards, Robert Link to comment Share on other sites More sharing options...
draculica Posted February 24, 2006 Share Posted February 24, 2006 Try this:<div style="overflow:auto;width:280px;height:130px; color:black; font-size:9pt; font-family:helvetica; background-color:white; border:0px;">whatever......whatever......whatever......whatever......whatever......</div> Link to comment Share on other sites More sharing options...
SilentS Posted February 24, 2006 Author Share Posted February 24, 2006 Looks like we're not thinking about the same thing. I have no problem making an overflow area with scrollbars. What I'm looking for is a way to scroll that area without directly using the scrollbar. With frames there's no problem, I just use the onClick="parent.(frame).scrollTo(x,y)". I wish to replace "parent.frame" with something that points to the "overflow-area". Try this:<div style="overflow:auto;width:280px;height:130px; color:black; font-size:9pt; font-family:helvetica; background-color:white; border:0px;">whatever......whatever......whatever......whatever......whatever......</div><{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
scott100 Posted February 24, 2006 Share Posted February 24, 2006 Try this SilentS, it should give you an idea of how to do this.http://www.faqts.com/knowledge_base/view.phtml/aid/7746 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now