Page 1 of 1

title attribute not shownig up???

Posted: Mon Dec 18, 2006 6:00 pm
by konstandinos
hello folk

when i specify title attributes to option tags (all nested in a select tag), they show up perfectly in firefox, but not in explorer.

i am referring to this...

Code: Select all

<option value="url.php" title="foo">meh</option>
so when my lovely drop-down list is selected and i hover my mouse over any of the options, i get a nice popup of the title, but this only happens in firefox :-(

however, titles specified in link tags...

Code: Select all

<a title="foo" href="etc">link</a>
... show up just fine in both browsers.

how do i get titlte attributes (in option tags) to work in explorer?

the winner gets karma +10.

happy holidays,
k

Posted: Mon Dec 18, 2006 6:01 pm
by feyd
options normally don't have or need "titles."

Posted: Mon Dec 18, 2006 6:12 pm
by konstandinos
yes i agree, with the normally part.

for the sake of keeping the list concise and easy on the users' eyes, i display the Month and Year. that way the list is nice and uniform. hovering the mouse over one of the options show its title, which is the title of that month's post.

jeesh its late here in south africa (2am) and i am struggling to explain this clearly.

ok basically this is what i have:

option list (select one):

-december, 2006
-novermber, 2006
-october, 2006

... submit_button


each option has titles of variable length (ie: displaying the titles in the list would give me a really ugly looking list dont you think?)

but a popup of the title when hovering over that option... well that's just awesome.

anyhow, having titles for what i am doing would be really cool. it works in firefox.

is there a way to do it in explorer?

Posted: Mon Dec 18, 2006 8:05 pm
by Zoxive
I believe IE and uses "alt"

Code: Select all

<a href="http://www.google.com" alt="Google!" title="Google!">www.google.com</a>

Posted: Mon Dec 18, 2006 8:32 pm
by konstandinos
thanks for trying, but doesn't seem to work. bear in mind i am talking about title (or alt) attributes inside the <option> tag, and not inside <a>.

Posted: Mon Dec 18, 2006 10:43 pm
by feyd
I'd suggest finding an alternate solution.