|
| |
|
|
Tailslide
Posts: 6272 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: replacing CSS hover image for browser compability - 4/28/2007 16:42:18
If it's just for a link then use a:active after a:hover - that'll sort out IE. If it's for a non-link then you'll need another solution, have a Google for whatever:hover.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
aleznander
Posts: 7 Joined: 12/8/2006 Status: offline
|
RE: replacing CSS hover image for browser compability - 6/2/2007 6:18:12
hehe i know this thread is quite old, but i still havent made any progress.. The solution in the first link Jaybee offered didnt make any difference :/, and the second i just dont understand because i dunno about javascript and .htc files. Also the thing im trying to do here Tailside is an image link that switches image on hover, not just a normal link. edit: Hmmm.. in this link: http://lawrence.ecorp.net/inet/samples/css-ie-hover.shtml should you replace expression with something? what could that be?
< Message edited by aleznander -- 6/2/2007 6:32:55 >
|
|
|
|
Tailslide
Posts: 6272 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: replacing CSS hover image for browser compability - 6/2/2007 7:13:42
Ok - here's a working example of a pure CSS image replacement rollover: http://www.littleblueplane.com/test/hovertest.html I've made the image to the same size as your div in the hope that it'll make it easier to use. Instead of two images you've got one image made up of the two images, one on top of the other. This is to help avoid any flickering which you can get in IE with two image rollovers. Now the issue here isn't getting it to work with CSS - cos that's not hard. The issue is to get it to work well. By well I mean that it should work with images switched off, work with CSS switched off (in both cases you get the straight link) and work with keyboard navigation AND work cross-browser. So what that means is that you end up turning a simple bit of CSS (using a background image) into a pretty complex bit of CSS. It's actually an astonishingly long bit of CSS - but it works reasonably well.
< Message edited by Tailslide -- 6/2/2007 7:29:50 >
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|