Renlok Posted June 12, 2008 Share Posted June 12, 2008 What i want to make is basically just a circular scrollbar. All i want is to have an image that the user can drag around the circumference of a circle. I know quite a bit of javascript but i don't really know the best way to go about doing this. Anyone have any ideas? Link to comment https://forums.phpfreaks.com/topic/109888-javascript-circular-scrollbar/ Share on other sites More sharing options...
xtopolis Posted June 12, 2008 Share Posted June 12, 2008 http://www.mediacollege.com/internet/javascript/page/scroll.html window.scrollBy(0,50); // horizontal and vertical scroll increments A thought of how it could be done: -Image on screen, with mousedown and mouseup event. -Mousedown (records start position of clientx/y) -Mouseup takes the end position of clientx/y) From there you could determine how much the mouse moved and make it a ratio to your page height/length and apply the window.scroll. However I am not sure how to apply this to a circular method. Link to comment https://forums.phpfreaks.com/topic/109888-javascript-circular-scrollbar/#findComment-564216 Share on other sites More sharing options...
Renlok Posted June 12, 2008 Author Share Posted June 12, 2008 thanks but thats not what i asked for. What i want to make is basically just a circular scrollbar. All i want is to have an image that the user can drag around the circumference of a circle. I know quite a bit of javascript but i don't really know the best way to go about doing this. Anyone have any ideas? Please read the thread first. Link to comment https://forums.phpfreaks.com/topic/109888-javascript-circular-scrollbar/#findComment-564282 Share on other sites More sharing options...
BrianM Posted June 13, 2008 Share Posted June 13, 2008 Your words towards xtopolis seem sort of... hostile, in a way, seeing as how he was only trying to help you. Link to comment https://forums.phpfreaks.com/topic/109888-javascript-circular-scrollbar/#findComment-564419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.