 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
IRC Channel
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
 |
|
 |
02-28-2009, 12:36 AM
|
#1 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Dropdown menu with icons?
hey guys,
looking to see if anyone knows how to do this. I've been seeing some site use dropdowns but along with the text, it also has icons.
The icons are usually small, I'd assume they were around 16x16 or maybe even 20x20, but does anyone know how to include images in a drop down? the format is below:
Dropdown Menu
-------------
[icon] Link#1
[icon] Link#2
[icon] Link#3
|
|
|
|
02-28-2009, 12:50 AM
|
#2 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by allworknoplay
hey guys,
looking to see if anyone knows how to do this. I've been seeing some site use dropdowns but along with the text, it also has icons.
The icons are usually small, I'd assume they were around 16x16 or maybe even 20x20, but does anyone know how to include images in a drop down? the format is below:
Dropdown Menu
-------------
[icon] Link#1
[icon] Link#2
[icon] Link#3
|
What I do is get the mouse position, and just position the dropdown menu to the x and y corridinates of the mouses current position, which is also called events, then I check if its displayed or not, and change that, besides that the contents of the drop down element is formated the way it should be, and that's about it.
The icons are probably from FamFamFam
__________________
VillageIdiot can have my babbies ;d
|
|
|
|
|
The Following User Says Thank You to Orc For This Useful Post:
|
|
02-28-2009, 12:59 AM
|
#3 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Orc
What I do is get the mouse position, and just position the dropdown menu to the x and y corridinates of the mouses current position, which is also called events, then I check if its displayed or not, and change that, besides that the contents of the drop down element is formated the way it should be, and that's about it.
The icons are probably from FamFamFam
|
Ok you completely lost me, but I'm glad you sent me that link, I've never seen that site before but looking at it quickly looks like a fun site to scour around...
I'll be taking a look at it...thanks!
|
|
|
|
02-28-2009, 01:02 AM
|
#4 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by allworknoplay
Ok you completely lost me, but I'm glad you sent me that link, I've never seen that site before but looking at it quickly looks like a fun site to scour around...
I'll be taking a look at it...thanks!
|
It's a site where you can get a large variety pack of icons.
WildHoney uses it on WiredFlame.
__________________
VillageIdiot can have my babbies ;d
|
|
|
|
02-28-2009, 01:08 AM
|
#5 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Orc
It's a site where you can get a large variety pack of icons.
WildHoney uses it on WiredFlame.
|
I'm seeing a "UK" theme around here...is everyone from the UK?
|
|
|
|
02-28-2009, 01:15 AM
|
#6 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by allworknoplay
I'm seeing a "UK" theme around here...is everyone from the UK?
|
I don't understand?
__________________
VillageIdiot can have my babbies ;d
|
|
|
|
02-28-2009, 01:17 AM
|
#7 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Orc
I don't understand?
|
It's just a joke, it just seems like a lot of the members here are from the U.K.
|
|
|
|
02-28-2009, 01:55 AM
|
#8 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
It is as simple as the following code. Albeit Internet Explorer doesn't play so nicely so that would require more of a hack.
css Code:
select option { background-repeat: no-repeat; background-position: 3px center; padding-left: 25px; }
select option#ar { background-image: url('ar.gif'); } select option#be { background-image: url('be.gif'); } select option#en { background-image: url('en.gif'); } select option#fr { background-image: url('fr.gif'); }
Using this HTML code:
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
|
The Following User Says Thank You to Wildhoney For This Useful Post:
|
|
02-28-2009, 01:57 AM
|
#9 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
 ! Hehe. Yes, I think many of us are from the UK. Where are you from again?
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
02-28-2009, 02:01 AM
|
#10 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Wildhoney
It is as simple as the following code. Albeit Internet Explorer doesn't play so nicely so that would require more of a hack.
css Code:
select option { background-repeat: no-repeat; background-position: 3px center; padding-left: 25px; }
select option#ar { background-image: url('ar.gif'); } select option#be { background-image: url('be.gif'); } select option#en { background-image: url('en.gif'); } select option#fr { background-image: url('fr.gif'); }
Using this HTML code:
|
I sooooo hate IE...it never plays nicely with anything!!
You have no idea how many times I design something, check it out in FF...wrap it up, call it a day, and say, "oops I forgot to try this in IE.."
Low and behold, it won't look right in IE....
Quote:
Originally Posted by Wildhoney
 ! Hehe. Yes, I think many of us are from the UK. Where are you from again?
|
I am from New York....
|
|
|
|
02-28-2009, 02:03 AM
|
#11 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
BTW, thanks for the dropdown code, I will try it out tonite...
|
|
|
|
02-28-2009, 02:43 AM
|
#12 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
IE8 seems to get the standards right this time. ;p
__________________
VillageIdiot can have my babbies ;d
|
|
|
|
03-14-2009, 05:16 PM
|
#13 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Orc
IE8 seems to get the standards right this time. ;p
|
That may be, but what else will they introduce that will conflict with the so called "standards"....
It will forever be an ongoing battle between FF and IE.
It's always apples to oranges, oranges to apples....
Perhaps one day we'll finally just get apples to apples....
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|