![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to achieve a hover effect for a non-anchor tag in CSS? I can use the following code, but it goes against the grain: a href="" onclick="return false;">Label</a Surely there must be a 'proper' way of doing it? |
#3
| |||
| |||
|
|
CJM wrote: Is it possible to achieve a hover effect for a non-anchor tag in CSS? I can use the following code, but it goes against the grain: a href="" onclick="return false;">Label</a Surely there must be a 'proper' way of doing it? Just find a client that correctly implements the :hover pseudo-class for all elements (hint: not IE). -- Steve It is curious that physical courage should be so common in the world and moral courage so rare. -Mark Twain |
#4
| |||
| |||
|
|
Hmmm.... I had a horrible feeling this would be the answer.... This is an intranet system. Guess what our standard browser is.... |
#5
| |||
| |||
|
|
CJM wrote: Hmmm.... I had a horrible feeling this would be the answer.... This is an intranet system. Guess what our standard browser is.... Then you'd have more luck in a microsoft.* group. You might be able to implement hover-like functionality in IE with a behavior. http://msdn.microsoft.com/workshop/a...owto/using.asp -- Steve The wise man learns more from his enemies than a fool does from his friends. -Chinese proverb |
#6
| |||
| |||
|
|
My javascript solution depends on J(ava)Script not being disabled in the browser, but at least it offers some form of browser independance. |
#7
| |||
| |||
|
|
We don't even know the real problem, so we cannot estimate the adequacy of the solution. What is the problem that you expect to solve with the hover effect (which?) for a non-anchor element? Is there any reason why the user would move the mouse over a normal innocent element? |
#8
| |||
| |||
|
|
... Is there any reason why the user would move the mouse over a normal innocent element? |
#9
| |||
| |||
|
|
Is there any reason why the user would move the mouse over a normal innocent element? |
#10
| |||
| |||
|
|
"CJM" <cjmwork (AT) yahoo (DOT) co.uk> wrote: My javascript solution depends on J(ava)Script not being disabled in the browser, but at least it offers some form of browser independance. We don't even know the real problem, so we cannot estimate the adequacy of the solution. What is the problem that you expect to solve with the hover effect (which?) for a non-anchor element? Is there any reason why the user would move the mouse over a normal innocent element? -- Yucca, http://www.cs.tut.fi/~jkorpela/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |