最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Replace scrollbar within small text area with custom scrollbar - Stack Overflow

programmeradmin1浏览0评论

Is there a way to replace a standard scrollbar with a custom image (arrow graphics) that allows visitors to click on the graphics and scroll? 2 graphics (up and down arrow).

Is there a way to replace a standard scrollbar with a custom image (arrow graphics) that allows visitors to click on the graphics and scroll? 2 graphics (up and down arrow).

Share Improve this question asked Aug 31, 2010 at 9:25 SalehSaleh 2,71912 gold badges46 silver badges75 bronze badges 1
  • Not without rebuilding the whole scrolling functionality from scratch using JavaScript... – Pekka Commented Aug 31, 2010 at 9:26
Add a ment  | 

5 Answers 5

Reset to default 2

I've used jScrollPane in the past and it's proved very useful!

http://www.kelvinluck./assets/jquery/jScrollPane/jScrollPane.html

Check out the jScrollPane:
http://jscrollpane.kelvinluck./

Recent versions of WebKit (Safari, Chrome) allow this via CSS. Maybe this will be adopted by other browsers in the near future.

http://webkit/blog/363/styling-scrollbars/

For now, you will have to stick to JavaScript and, as others have mentioned, jScrollPane is probably the best one around at the moment.

You can use this script http://studio.radube./html-textarea-custom-scrollbar

发布评论

评论列表(0)

  1. 暂无评论