Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
how to change "select" arrow using own image
Old 03-08-2011, 12:30 AM how to change "select" arrow using own image
gongpex's Avatar
Experienced Talker

Posts: 36
Name: gong
Trades: 0
hi everyone,

I have ever met a website with "select option arrow" that using their own image,like this image:



I have tried to change it using CSS but it's not work,

I try using CSS code like this:

<select class="mycssStyle">
<option></option>
</select>

one day I hear that to change "select arrow button" must using javascript.

Anyone please help me

Thank you very much
gongpex is offline
Reply With Quote
View Public Profile Visit gongpex's homepage!
 
 
Register now for full access!
Old 03-08-2011, 04:43 AM Re: how to change "select" arrow using own image
phpdasan's Avatar
Experienced Talker

Posts: 37
Name: Karthick B
Trades: 0
That is not an HTML select box control, its a div element inside which the options are listed in an li tag.

The image your are talking about is set as background image for the div and the value selected in the li text is set to the div's text via java script.
__________________
There is no secret ingredient.
phpdasan is offline
Reply With Quote
View Public Profile
 
Old 03-08-2011, 05:04 AM Re: how to change "select" arrow using own image
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Karthick is correct, you cannot change the "arrow" with CSS.

Select elements are NOT HTML elements they are "windowed elements" are are rendered according to the Operating System the browser is running on.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-09-2011, 01:03 AM Re: how to change "select" arrow using own image
gongpex's Avatar
Experienced Talker

Posts: 36
Name: gong
Trades: 0
Can someone give me javascript code please?

Thank you
GBU
gongpex is offline
Reply With Quote
View Public Profile Visit gongpex's homepage!
 
Old 03-11-2011, 11:30 PM Re: how to change "select" arrow using own image
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Quote:
Originally Posted by gongpex View Post
Can someone give me javascript code please?

Thank you
GBU
It cannot be done with javascript.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to how to change "select" arrow using own image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29284 seconds with 12 queries