Closed Thread Icon

Topic awaiting preservation: NS - IE and hand style Pages that link to <a href="https://ozoneasylum.com/backlink?for=8548" title="Pages that link to Topic awaiting preservation: NS - IE and hand style" rel="nofollow" >Topic awaiting preservation: NS - IE and hand style\

 
Author Thread
Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 02-24-2003 17:47

Hi,
I'm trying to differ between NS 6+ and IE inside a stylesheet.
The code I'm using the following code within a stylesheet: .HandStyle {cursor:hand;}
and the problem is NS 6+ don't know the hand style it knows the cursorointer; style.
How can I differ within a stylesheet between NS 6+ and IE or do you know about comon style for the hand?

10x in advanced
Yossi Admon

{Petskull Edit} Die slimey, die!


[This message has been edited by Petskull (edited 02-25-2003).]

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 02-24-2003 17:55

Yossi Admon: I'm not sure of your question - are you looking for something like the IE layout hack where you can serve up differnt widths to different browsers then see:
http://glish.com/css/hacks.asp

If this is a question about getting the cursor working cross-browser then as you say cursor: hand is IE only but cursor: pointer should work for both.

If I've completely misunderstood then sorry

And 10x? Ten times what?

___________________
Emps

FAQs: Emperor

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-24-2003 17:59

Yeah, I think you should just use cursorointer; , since hand isn't standard.

{Petskull Edit} Die slimey, die!

[This message has been edited by Petskull (edited 02-25-2003).]

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 02-24-2003 18:17

I have tryied the <td style="cursorointer;"> it works fine in NS but not in IE.

{Petskull Edit} Die slimey, die!




[This message has been edited by Petskull (edited 02-25-2003).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-24-2003 18:26

It works for me. Let's see your code.

What version of IE are you testing in?

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 02-24-2003 18:32

I'm using IE 5.5
following code is not working.
<html>
<body>
<table>
<tr>
<td style="cursorointer;"> This is a test</td>
</tr>
</table>
<body>
</html>

{Petskull Edit} Die slimey, die!

[This message has been edited by Petskull (edited 02-25-2003).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-24-2003 18:45

Ah, ok. It must be an IE 5.5 flaw then.

Although this isn't standards-compliant, you might try:

cursor:hand;
cursorointer;

Since IE *should* ignore the second one if it doesn't understand it, and other browsers *should* ignore the first one since they don't understand it.

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 02-24-2003 18:46

The code works fine in IE6 the problem is IE 5.5
Do we have any workaround?

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 02-24-2003 18:51

.HandType{
cursorointer;
cursor:hand;
}
Works fine 10x.

{Petskull Edit} Getting tired of Deleting Slimies!! what is wrong with you people..?

[This message has been edited by Petskull (edited 02-25-2003).]

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 02-24-2003 21:54

I think IE 5.x has issues applying cursorointer to inline elements, I've run into this issue before, don't think I ever really solved it though. "Pointer" should work fine for block elements; just remember that your css isn't likely to validate with cursor:hand. Not a big issue though as I can't see a non standard cursor value causing any real problems in past or present browsers.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-24-2003 22:12

Yossi: It is important that you do

cursor:hand;
cursorointer;

rather than

cursorointer;
cursor:hand;

This is because the standards-compliant one must be kept last. The reason for this is that cursor:hand might one day become standard. When it does, your code will start following that new standard in standards-compliant browsers. If, however, you keep the non-standard part first, then if it *becomes* standard later on, the second part will override it, and your page won't break.

{Petskull Edit} Yeah, don't laugh... the slimes were YOUR idea... hehe tra la la... watch me wreak havoc in Slime's post!! I'm a maniac!! I'm outta controll!! OK, bye...

[This message has been edited by Petskull (edited 02-25-2003).]

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 02-26-2003 20:08

It work only in this order!

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-26-2003 20:22

Thanks Petskull =)

The horrible slimey-detection code, mind you, was *not* my idea. That was the idea of the makers of UBB. =)

[edit: if it only works in that order, you should attempt to find a different workaround, or maybe give up the effect entirely. It's probably not as important as learning and using good coding techniques is.]

[This message has been edited by Slime (edited 02-26-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu