title attribute not shownig up???

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
konstandinos
Forum Commoner
Posts: 68
Joined: Wed Oct 04, 2006 4:20 am

title attribute not shownig up???

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

options normally don't have or need "titles."
konstandinos
Forum Commoner
Posts: 68
Joined: Wed Oct 04, 2006 4:20 am

Post 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?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post 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>
konstandinos
Forum Commoner
Posts: 68
Joined: Wed Oct 04, 2006 4:20 am

Post 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>.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'd suggest finding an alternate solution.
Post Reply