Mohammad Shafiq
Mohammad Shafiq

Reputation: 23

bottom scroll bar of div should be an image

I have some images in my div. I want to scroll that with a horizontal bar; I would like the scroll bar to be an image. Also how I can change the color and the shape of the default scroll bar?

Upvotes: 0

Views: 126

Answers (2)

Michas
Michas

Reputation: 9428

It used to be (is?) possible to set colours of scrollbars in IE, Opera and Konqueror. However it didn't look good.

You may use JavaScript, however it is very bad idea.

  1. You have to hide standard scrollbars somehow.
  2. You have to implement mouse wheel, some keyboard actions: arrows, Page Up, Down...
  3. There will be problems with mobile browsers.
  4. There may be problems with zooming whole page or text without images.
  5. There may be some problems with obscure browsers.
  6. The final experience could be worse than with standard scrollbars.

You may look for some kind of JavaScript gallery too. With horizontal scrolling but without scroll bars.

Upvotes: 0

Amr Elgarhy
Amr Elgarhy

Reputation: 68912

I used to edit the safari, chrome scroll bars using webkit and there are many examples about that. But For image scroll bars on all browsers you will need some javascript. May be jquery scrollbar

Upvotes: 1

Related Questions