CSS selectors not working properly.

Hi, I was getting this code to work before but now it’s not and it’s driving me crazy!!
Anyone know what I am doing wrong? Here is the code:

body {cursor:url(gloveopen.cur)}
body * {cursor:url(gloveopen.cur)}
[href] {cursor:url(gloveclick.cur)}
[onClick] {cursor:url(gloveclick.cur)}

You see, the code is supposed to make it so when the user mouses over anything with the href or onClick attributes, it changes the mouse cursor to gloveclick.cur. But when on anything else, it is gloveopen.cur. It doesn’t work and I don’t know why! I don’t know css that well but it is such a short bit of code what am I missing?

Ok, here’s the deal, I have stepped it up a gear and changed it to:
body {
cursor:url(gloveopen.cur),default;
}
body * {
cursor:url(gloveopen.cur),default;
}
body * [href] {
cursor:url(gloveclick.cur),pointer;
cursor:url(gloveclick.cur),hand;
}
body * [onClick] {
cursor:url(gloveclick.cur),pointer;
cursor:url(gloveclick.cur),hand;
}
input[type=“submit”] {
cursor:url(gloveclick.cur),pointer;
cursor:url(gloveclick.cur),hand;
}
input[type=“text”] {
cursor:url(pencil.cur),text;
}
input[type=“password”] {
cursor:url(pencil.cur),text;
}
textarea {
cursor:url(pencil.cur),text;
}
This works in FF but not IE or Google Chrome! What am I still doing wrong? The paths are all correct!

What happens is the browser just keeps the gloveopen cursor and not pencil or gliveclick cursors! Anyone know?

Finally, figured it out myself.
body {
cursor:url(gloveopen.cur),default;
}
body * [href] {
cursor:url(gloveclick.cur),pointer;
cursor:url(gloveclick.cur),hand;
}
body * [onClick] {
cursor:url(gloveclick.cur),pointer;
cursor:url(gloveclick.cur),hand;
}
input[type=“submit”] {
cursor:url(gloveclick.cur),pointer;
cursor:url(gloveclick.cur),hand;
}
input[type=“text”] {
cursor:url(pencil.cur),text;
}
input[type=“password”] {
cursor:url(pencil.cur),text;
}
textarea {
cursor:url(pencil.cur),text;
}
Had to remove the body * (or all body elements) it was overwriting a few things. And I was so sure it was nessecary…

Sponsor our Newsletter | Privacy Policy | Terms of Service