77 (more) bloggers can't be wrong || MAIN || ch-ch-ch-changes

February 22, 2004

firefox tip

It's always nice to find something new to make an app work even better for you. Today I found, via Digital Media Minute, that David Tenser's great Firefox Help site, Tips and Tricks page, has a UserContent.css tip that changes the cursor for links that will open in a new window. Nice.

Posted by asa at February 22, 2004 08:40 PM
Comments

I think this tip is extremely useful...

I use this solution, which also handles links that open in named browser windows and uses a different cursor for JavaScript links as they often open in new windows as well.

Posted by: Chris Pederick on February 22, 2004 08:46 PM

There's a quote at the end of the tip link.

Posted by: Andy King on February 22, 2004 11:35 PM

Nice! Amazing how interesting new features you can add with CSS customization. :-) Adding this innovative feature right away ;)

Posted by: Jugalator on February 23, 2004 01:24 AM

Setting browser.block.target_new_window to true is even better.

See http://bugzilla.mozilla.org/show_bug.cgi?id=105547#c92

Posted by: Phillip on February 23, 2004 07:39 AM

Another handy JS indicator is

a[href^="javascript:"], a[onclick] {
cursor: move;
}

Any link that has an onclick attribute usually has some JS involved. This helps flag links that look like this:

<a href="http://whatever" onclick="doSomething();">

- for example, the Comments and TrackBack links on this page. These open in a new window, yet aren't caught by any of the other methods previously discussed.

Posted by: jpo on February 23, 2004 09:16 AM

is it possible to use a local cursor, eg something like
cursor: url("file:///c:/winnt/cursors/Yellow_link.cur");

or perhaps a chrome:// uri?

Posted by: Donald Noble on February 23, 2004 01:08 PM

in response to my post above, mozilla doesnt yet support a uri for cursors, see:
http://bugzilla.mozilla.org/show_bug.cgi?id=38447
Bug 38447 - Implement Handling of URI Values on CSS2 "cursor" Properties

:(

Posted by: Donald Noble on February 26, 2004 12:34 PM

Post a comment