473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with cursor property

I am using the following class in a CSS document:

..loginsubmit
{ background-color: #ffffff; FONT-WEIGHT: bold; color: #002980; cursor:
hand }

It works perfectly well, but it won't validate in the W3C CSS validator
saying:

Invalid number : cursorhand is not a cursor value : hand

I need to change the cursor into a hand as when it goes over the submit
button without the "cursor: hand" part the cursor remains like that of
general text and the user might not know that they can click on the button.

Any suggestions as to what i should be using to get the pointer to look like
a hand as it hovers over a button?

Thanks,
--
Chris Michael
www.INTOmobiles.com
Free ringtones/logos
Free mobile alerts
3 months free insurance
Jul 20 '05 #1
9 8307
in post: <news:c5*************@ID-211081.news.uni-berlin.de>
"Chris Michael" <ne**@intomobiles.com> said:
Any suggestions as to what i should be using to get the pointer to look like
a hand as it hovers over a button?


cursor:pointer;

http://www.w3.org/TR/REC-CSS2/ui.html#cursor-props
--
b r u c i e
Jul 20 '05 #2
On Thu, 8 Apr 2004 15:42:16 +0100, Chris Michael <ne**@intomobiles.com>
wrote:
I am using the following class in a CSS document:

.loginsubmit
{ background-color: #ffffff; FONT-WEIGHT: bold; color: #002980; cursor:
hand }

It works perfectly well, but it won't validate in the W3C CSS validator
saying:

Invalid number : cursorhand is not a cursor value : hand
See http://www.w3.org/TR/CSS21/ui.html#propdef-cursor for proper cursor
values.
I need to change the cursor into a hand as when it goes over the submit
button without the "cursor: hand" part the cursor remains like that of
general text and the user might not know that they can click on the
button.

Any suggestions as to what i should be using to get the pointer to look
like
a hand as it hovers over a button?


Likely cursor: pointer; would do the trick...
Jul 20 '05 #3
Chris Michael wrote:
I am using the following class in a CSS document:

.loginsubmit
{ background-color: #ffffff; FONT-WEIGHT: bold; color: #002980; cursor:
hand }

It works perfectly well, but it won't validate in the W3C CSS validator
saying:

Invalid number : cursorhand is not a cursor value : hand
That's because 'hand' is a proprietary version of the standard property
value 'pointer'. When you are having trouble with validity, check the
specification:

<URL:http://www.w3.org/TR/REC-CSS2/ui.html#cursor-props>

I need to change the cursor into a hand as when it goes over the submit
button without the "cursor: hand" part the cursor remains like that of
general text and the user might not know that they can click on the
button.


Wouldn't a better approach be to leave it looking like a button, which is
instantly more recognisable, rather than making your visitors wave their
mouse around trying to find things to click on? Or at least style it like
the rest of your links (e.g. underline it)?
--
Jim Dabell

Jul 20 '05 #4
in post: <news:c5*************@ID-211081.news.uni-berlin.de>
"Chris Michael" <ne**@intomobiles.com> said:
I need to change the cursor into a hand as when it goes over the submit
button without the "cursor: hand" part the cursor remains like that of
general text and the user might not know that they can click on the button.


my brain didn't absorb the above until after i sent my first reply.

you don't need to change anything. the cursor changing to indicate a
link is not standard nor expected behavior on form buttons[1]. don't
confuse your visitors.

[1] that i'm aware of.

--
b r u c i e
Jul 20 '05 #5

"Chris Michael" <ne**@intomobiles.com> wrote in message
news:c5*************@ID-211081.news.uni-berlin.de...
I am using the following class in a CSS document:

.loginsubmit
{ background-color: #ffffff; FONT-WEIGHT: bold; color: #002980; cursor:
hand }

It works perfectly well, but it won't validate in the W3C CSS validator
saying:

Invalid number : cursorhand is not a cursor value : hand

I need to change the cursor into a hand as when it goes over the submit
button without the "cursor: hand" part the cursor remains like that of
general text and the user might not know that they can click on the

button.

If you wrote "cursor: nose;" would you expect the cursor to look like a
nose?

One valid value for the cursor property is "pointer", which in IE, at least
under some Windows UI "themes", happens to be an image of a hand. If the
usual appearance for a pointer-type cursor on some machines or OS's or
browsers is something other than a hand, that's not of concern to you.

Jul 20 '05 #6
"Chris Michael" <ne**@intomobiles.com> wrote in message
news:c5*************@ID-211081.news.uni-berlin.de
|| I am using the following class in a CSS document:
||
|| .loginsubmit
|| { background-color: #ffffff; FONT-WEIGHT: bold; color: #002980;
|| cursor: hand }
||
|| It works perfectly well, but it won't validate in the W3C CSS
|| validator saying:
||
|| Invalid number : cursorhand is not a cursor value : hand
||
|| I need to change the cursor into a hand as when it goes over the
|| submit button without the "cursor: hand" part the cursor remains
|| like that of general text and the user might not know that they can
|| click on the button.
||
|| Any suggestions as to what i should be using to get the pointer to
|| look like a hand as it hovers over a button?

Damn, that was quick!

Thanks for all your suggestions.

--
Chris Michael
www.INTOmobiles.com
Free ringtones/logos
Free mobile alerts
3 months free insurance
Jul 20 '05 #7
DU
brucie wrote:
in post: <news:c5*************@ID-211081.news.uni-berlin.de>
"Chris Michael" <ne**@intomobiles.com> said:

I need to change the cursor into a hand as when it goes over the submit
button without the "cursor: hand" part the cursor remains like that of
general text and the user might not know that they can click on the button.

my brain didn't absorb the above until after i sent my first reply.

you don't need to change anything. the cursor changing to indicate a
link is not standard


Agreed. But what about the type of link?

nor expected behavior on form buttons[1].

Agreed here too.

don't confuse your visitors.

[1] that i'm aware of.


But just for the sake of this thread, Brucie, would you be against a
modification in CSS3 User Interface to include cursors which would indicate
- an .exe file (download will be triggered): the cursor would be a hand
with a floppy disk on its right-bottom side.
- a mailto: format (the associated mail program would be called) or an
<address> element: the cursor would be a hand with an envelop on its
right-bottom side
- a target="_blank" (opening a new window): the cursor would be a hand
with a red arrow in its center trying to indicate the opening of a new
window. Now, this one would meet a guideline given by WAI:

"if your link spawns a new window, or causes another windows to "pop up"
on your display, or move the focus of the system to a new FRAME or
Window, then the nice thing to do is to tell the user that something
like that will happen."
http://www.w3.org/WAI/wcag-curric/sam77-0.htm

and also would definitively meet the spirit of a recommendation by J.
Nielsen

"Use link titles to provide users with a preview of where each link will
take them, before they have clicked on it."
Ten Good Deeds in Web Design
http://www.useit.com/alertbox/991003.html

Now, all of this is currently doable and possible in MSIE 6. There is an
MSIE 6 extension (creating a Site Navigation toolbar, just like in
Mozilla-based browsers and in Opera 7.x) that uses this.
You can see what I mean viewing this section with MSIE 6:

http://www10.brinkster.com/doctorunc...rs.html#Custom

DU
Jul 20 '05 #8
in post: <news:c5**********@news.eusc.inter.net>
DU <dr*******@hotWIPETHISmail.com> said:
But just for the sake of this thread, Brucie, would you
oh no, i think you've mistaken me for someone who has a clue.
be against a modification in CSS3 User Interface to include cursors
which would indicate
- an .exe file
- a mailto:
- a target="_blank"


what sort of checks and balances are going to be used to ensure that if
a cursor says its a mailto it really is and not a PPC link to some sicko
porn?

its a nice idea but open to waaay too much abuse which would make the
whole thing untrusted and annoying. browsers using it without author
control would be nice.

the little voices agree with me.
--
b r u c i e
Jul 20 '05 #9
DU
brucie wrote:
in post: <news:c5**********@news.eusc.inter.net>
DU <dr*******@hotWIPETHISmail.com> said:

But just for the sake of this thread, Brucie, would you

oh no, i think you've mistaken me for someone who has a clue.

be against a modification in CSS3 User Interface to include cursors
which would indicate
- an .exe file
- a mailto:
- a target="_blank"

what sort of checks and balances are going to be used to ensure that if
a cursor says its a mailto it really is and not a PPC link to some sicko
porn?


Yeah, that is a problem.
its a nice idea but open to waaay too much abuse which would make the
whole thing untrusted and annoying. browsers using it without author
control would be nice.

the little voices agree with me.


Understood. But
a[target="_blank"] {cursor:-moz-open_blank_window;}
for instance is very reliable, furthermore if integrated into the
browser default html.css (or userContent.css). I'm referring to Mozilla
here.

CSS3 hyperlink also asked:
"How are secondary (or even tertiary) links styled? Do they need to be?
Or should their interactivity be left up to the user agent?"
http://www.w3.org/TR/2004/WD-css3-hy...4/#open-issues

Regarding .exe,
a[href$=".exe"] {cursor:-moz-download-trigger;}
will work reliably in CSS3 selector compliant browsers.
http://www.w3.org/TR/css3-selectors/#selectors

Anyway, this could be either in the browser default CSS values or
available to user-defined style Sheets with !important keyword.

DU
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: rdlebreton | last post by:
Hi, Folks! I've been trying to develop my own version of these draggable layers and I have been limiting myself to IE6...for now. I have looked at some other examples to get ideas of creating...
1
by: Ryan Stewart | last post by:
If you don't want to read this post because of its length, I understand. I've spent two and a half days on this problem and have a good deal of information to relate. And this is kind of a long...
1
by: Riccardo Giomi | last post by:
Hi I would to display a Cursors.WaitCursor on a ListView control, so I tried listView.Cursor = Cursors.WaitCursor but it doesn't work at all, I see always the default cursor. The same thing...
0
by: Mike Hofer | last post by:
Hi everyone. I could really use some help. First, the backstory: ===================== I *really* need a 3-state checkbox for my ASP.NET application. Specifically, I need one that lets me set...
10
by: Just Me | last post by:
Does Me.Cursor.Current=Cursors.WaitCursor set the current property of Me.Cursor to Cursors.WaitCursor And Me.Cursor.Current=Cursors.Default set the Me.Current property to something (default)...
18
by: **Developer** | last post by:
If e.Button = MouseButtons.Left Then also from a Dim Answer As DialogResult = MessageBox.Show.. Select Case Answer Case DialogResult.Yes
12
by: info | last post by:
Hi All, I am trying to set the hourglass cursor inside a class that has nothing to do with MainForm class and I don't want to pass a reference to MainForm. How can I set the current cursor to...
4
by: David Veeneman | last post by:
I'm creating a UserControl that uses a LinkLabel. For reasons that I won't bore everyone with, I don't want the LinkLable to show the default hand cursor when the mouse enters the control. Should...
10
by: shubha.sunkada | last post by:
Hi, I have a recordset connection in asp that I am using to search records.If I use the client side cursorlocation (rs.cursorlocation=3) then it takes really long to return back the records due...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.