Jump to content

Javascript circular scrollbar


Renlok

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.