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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.