Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
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
 
Old November 1st, 2005, 08:21 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default 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
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old November 1st, 2005, 11:04 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

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
 
Old November 1st, 2005, 11:17 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

 
Old November 1st, 2005, 11:46 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

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
 
Old November 1st, 2005, 12:12 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

 
Old November 1st, 2005, 12:18 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

cool, cheers.

i was looking for

functionname(this.id, this.name, this.value, this.accesskey)

is that poss?

www.crmpicco.co.uk
 
Old November 1st, 2005, 12:24 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes, it'll work, but you'll need to use this.accessKey rather than this.accesskey

HTH,

Chris

 
Old November 1st, 2005, 12:26 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

nice one, that'll do. saves me having to mis-use title tag! :-)

www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Online Diary Mod Show Entry Title on Calendar vgharris0 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 April 1st, 2008 12:02 PM
show title without mouseover object crmpicco Javascript How-To 0 October 20th, 2005 06:35 AM
show a img title onClick crmpicco Javascript How-To 2 October 7th, 2005 08:50 AM
onmouseover gilgalbiblewheel HTML Code Clinic 4 February 4th, 2005 08:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.