 |
Javascript How-To Ask your "How do I do this with Javascript?" questions here. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

November 1st, 2005, 08:21 AM
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
set title but do not show onMouseOver
Code:
<input type="radio" name="<%=id%>" value="<%=id%><%=j+1%>" title="<%=j%>" onMouseOver="style.cursor='hand'" >
is there a way to have the title set on this object, but not show it on mouseover?
the title is used for js processing.
picco
www.crmpicco.co.uk
|

November 1st, 2005, 11:04 AM
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
someone posted on cf that the title cannot be hidden is there another property i can set on it with a value of <%=j%>, i have used id,value and name. cheers.
www.crmpicco.co.uk
|

November 1st, 2005, 11:17 AM
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Picco,
You could store the title in a temporary variable while the mouse is over the radio button...
Code:
<input id="myRadio" type="radio" title="my title text" onmouseover="window.temp = this.title; this.title = '';" onmouseout="this.title = window.temp;">
HTH,
Chris
|

November 1st, 2005, 11:46 AM
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i dont think that would work, i am looking for something to attach onto the radio button. would the accesskey work? picco
www.crmpicco.co.uk
|

November 1st, 2005, 12:12 PM
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Works fine for me.
Yep, you could use accesskey if you wanted, but it's not what a user would expect, so IMHO would not be the best way to do things (ditto for using title for non-standard behaviour).
Cheers,
Chris
|

November 1st, 2005, 12:18 PM
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
cool, cheers.
i was looking for
functionname(this.id, this.name, this.value, this.accesskey)
is that poss?
www.crmpicco.co.uk
|

November 1st, 2005, 12:24 PM
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Yes, it'll work, but you'll need to use this.accessKey rather than this.accesskey
HTH,
Chris
|

November 1st, 2005, 12:26 PM
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
nice one, that'll do. saves me having to mis-use title tag! :-)
www.crmpicco.co.uk
|
|
 |