![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
As a basic rule of usability, a user should get immediate feedback from clicking on a link, right? This avoids the problem that users click and click on a link because they don't see anything happen - it worked the first time, but the system, the browser, or the net is just slow. Apparently, this would be a browser issue, but we can't change browsers now. Instead, should we do something at least to navigational links? Apparently we can make a link change appearance on mouseover, using :hover in CSS, but the :active pseudo-element is vaguely defined and inconsistently supported. So I though a piece of JavaScript might be useful, with a href="..." onmousedown="pressed(this)" onclick="clicked(this)" e.g. so that pressed() changes the element's border (initially set to outset style) look inset and clicked() removes the border or changes it to dotted or dashed (or changes its color). This could make the link look like a button that can pressed down and then changes to something wild when released. (Or should onclick() restore the outset style?) See a demo at http://www.cs.tut.fi/~jkorpela/test/clicklink.html The question is: does this make sense, and is it useful? Is it useful enough to justify the amount of extra code needed (for each link)? |
#3
| ||||
| ||||
|
|
As a basic rule of usability, a user should get immediate feedback from clicking on a link, right? |
|
This avoids the problem that users click and click on a link because they don't see anything happen - |
|
Apparently, this would be a browser issue, but we can't change browsers now. |
|
See a demo at http://www.cs.tut.fi/~jkorpela/test/clicklink.html |
#4
| ||||
| ||||
|
|
Firstly I consider this a solution to a non existing problem. |
|
There is sufficient indication to a user that a link has been activated unless the user has switched off UI elements such as a button bar, status bar etc, |
|
Secondly I don't see the need for JS, the :active pseudo is supported well enough in the big three for this purpose. |
|
Thirdly no self respecting designer would use outset/inset due to the fact that browsers are free to render the gradient and do so inconsistently. |
#5
| |||||
| |||||
|
|
There is sufficient indication to a user that a link has been activated unless the user has switched off UI elements such as a button bar, status bar etc, Well, the bars are rather far from the link, aren't they? |
|
I think the link itself should indicate that was clicked on |
|
Secondly I don't see the need for JS, the :active pseudo is supported well enough in the big three for this purpose. I don't think it is. On IE, clicking pressing the mouse button down when the pointer is on the link makes the link match the :active selector. |
|
That is, the link becomes active before it has been clicked on. |
|
Moreover, if you follow a link and then return (using the Back button), the link remains as matching :active. |
#6
| |||
| |||
|
|
From what I can see testing with local resources IE doesn't appear to change the cursor to an hourglass. |
|
Secondly I don't see the need for JS, the :active pseudo is supported well enough in the big three for this purpose. I don't think it is. On IE, clicking pressing the mouse button down when the pointer is on the link makes the link match the :active selector. Pressing the mouse button down when the pointer is on the link also activates the link no? |
|
IE does have a problem in that a:active matches when you tab to the link with the keyboard. |
![]() |
| Thread Tools | |
| Display Modes | |
| |