Derleek Posted August 4, 2008 Share Posted August 4, 2008 So im wondering if there is a way to scroll through div content with out using JS? If there isn't what would be a good way to not depend on this function (if a user has JS disabled?) PS. why would someone disable javascript? just to make life difficult for me??? :'( Quote Link to comment https://forums.phpfreaks.com/topic/118148-scrolling-divs/ Share on other sites More sharing options...
zq29 Posted August 4, 2008 Share Posted August 4, 2008 What do you mean by scroll through? Automatically, like a teleprompter? If so, you're looking at JavaScript, unfortunatly. Quote Link to comment https://forums.phpfreaks.com/topic/118148-scrolling-divs/#findComment-607848 Share on other sites More sharing options...
proggR Posted August 4, 2008 Share Posted August 4, 2008 I'm thinking you mean something like an iframe or like having the scroll:auto overflow:auto turned on for if text goes longer than the length of your div. If you mean automatically then, like mentioned, you need JS. Sorry. Its overflow. See here: http://www.w3schools.com/Css/pr_pos_overflow.asp Quote Link to comment https://forums.phpfreaks.com/topic/118148-scrolling-divs/#findComment-607873 Share on other sites More sharing options...
Derleek Posted August 4, 2008 Author Share Posted August 4, 2008 wow didn't realise it was so simple! The CSS solution is what i'm looking for!! furthermore is there anyway to make two buttons to scroll through the div's? Quote Link to comment https://forums.phpfreaks.com/topic/118148-scrolling-divs/#findComment-607887 Share on other sites More sharing options...
proggR Posted August 4, 2008 Share Posted August 4, 2008 Like having your own up and down button? Not to my knowledge. I believe there are ways to play around with the style of the scroll bar but I'm not sure if they're JS or if you can use CSS for it. Its something I'd like to know though so I'll probably look around tonight. Quote Link to comment https://forums.phpfreaks.com/topic/118148-scrolling-divs/#findComment-607916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.