Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cursor style in Netscape

Status
Not open for further replies.

FesterSXS

Programmer
Feb 4, 2002
2,196
GB
Is there any way of controlling the cursor style in Netscape similar to the way it can be achieved with IE??

code I am currently using for IE:
Code:
span.point {cursor: hand;}
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
yes you can use the W3C standard pointer instead of the proprietary Microsoft hand.

span.point {cursor: pointer;}

You see not all operating systems and browsers use hand to design a pointer.

Gary Haran
 
It's not a Netscape property. It's W3C standard property. Did you see the DevGuru page I gave you a link to?

Also, how exactly did you try it? Posting one string of code can possibly bring the light on your problem.

Again, there is no such thing as "Netscape". There are 2 completely different browsers: Netscape 4.x series and Mozilla/Netscape 6+ based on Gecko engine.
If you want to make it work in Netscape 4 - forget about it, this can't be done.
 
in my stylesheet:
Code:
tr.module {background-color: #003399; cursor: pointer;}
span.point {font-size: 13px; color: #FFFFFF; font-weight: bold; cursor: pointer;}
and in my ASP page:
Code:
...
<TR CLASS=module><TD><SPAN CLASS=point>01</SPAN></TD><TD><SPAN CLASS=point>Introduction</SPAN></TD></TR>
...
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Do this to get the effect in Netscape 6+ AND IE 5+ (4 also?)

span.point{
cursor: pointer;
cursor: hand;
}

Rick
 
FesterSXS, I copied/pasted your code and it works in Mozilla (as expeced, of course - no any reason it shouldn't work there), but not in IE5.

The reason is that IE5 doesn't &quot;recognize&quot; the pointer value, but it's OK on other pointer styles. Test that page on DevGuru and you'll see.

(I also suggest you start cross-browser testing, as it makes some &quot;weird&quot; things very clear.)

Use ristmo2001's method to make it work in both.
 
I had a big problem with this a while back. I finally decided to use cursor:pointer; and support the newer browsers that do things right rather than older browsers that screw things up.

Today the w3c recommended cursor token for a link is &quot;pointer&quot;.

I know both 6.x browsers support it. And despite a few weird things in 5.x IE (not all some bug but some don't) pointer is generally well accepted. And hey if it really causes a problem why not let the end user download a newer browser? They're free!! Gary Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top