tags:

views:

63

answers:

6

Hi

I need to know how to change textarea input, for example I want to add my own arrows and bars.

I know we can change colors in CSS but I want to add my own pictures just like in this picture

alt text

I want it in textarea input where user can type. Can we do that??

EDIT : jScrollPane is not working with textarea input, check this image

alt text

A: 

You can do this by having your own div floated to the right of the edit area. Then you would have to attach javascript or jquery code to observve the scroll image being dragged in order to determine how high or low your text input area should be displayed.

Brian Scott
A: 

You will need to use Javascript for this, e.g. This.

fredley
A: 

you can do that.. but you'll need to work with JS... it cant be done with just css... there are good tool on the web that you can use, depending on the JS framework that you use

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

it's better to use a framework to do this because it might save you a headache trying to make it work in different browsers

pleasedontbelong
beat me to it...
Nivas
No, it's not working as I want, check image in the question
SzamDev
yeap.. i just realized that you're trying to change the scroll on a TEXTAREA... most of the solutions will work only on divs where you can't change the text. I wasn't able to find any examples, you'd have to hide the scroll and develop your own scroll using JS attaching the events to the textarea scroll.. but it would be really hard (at least for me) because you'd have to change the size of the scroll according to the length of the text and make it dinamically like a normal textarea
pleasedontbelong
A: 

jScrollPane is a plugin for jquery that does something like this.

Perhaps you are looking for this.

Nivas
No, it's not working as I want
SzamDev
A: 

This is about as close as you'll get:

body   {
position: absolute;
overflow-y: scroll;
overflow-x: hidden;
}
html {
overflow-y: auto;
background-color: transparent;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment  {
height: 10px;
background-color: transparent;
}
::-webkit-scrollbar-track-piece  {
background-color: #eeeeee;
-webkit-border-radius: 16px;
}
::-webkit-scrollbar-thumb:vertical {
height: 10px;
background-color: #666;
border: 1px solid #eee;
-webkit-border-radius: 16px;
}

As far as I know you can't use images, only CSS styling...

David
A: 

There's a script that do exactly what you want, check out http://studio.radube.com/html-textarea-custom-scrollbar . You can customize it with pure css and your own images.

randall