| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Rollover image css code
Until now I've used terribly messy dreamweaver code for rollover images. Does anyone know the code for a simple mouse over rollover image in css/html ? decent web hosting - www.balue.com
. |
|
|
|
|
|
#4 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Ok thanks lads - i'll give it a shot. decent web hosting - www.balue.com
. |
|
|
|
#5 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Not having much success. Hopefully one of you will be able to identify the problem. I've created a 1.jpg and a 2.jpg (1 being its normal state, and 2 when the mouse rolls over). It isn't working, however, I experimented with text, and on the mouse over it works... but I'm obviously doing something wrong. Here is my code - (thanks) Code:
decent web hosting - www.balue.com
. |
|
|
|
#6 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Anyone around? Could do with sorting this out this evening. decent web hosting - www.balue.com
. |
|
|
|
#7 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
You're displaying that image 3 times, once in the img tag, once in the first a, once in the second a. Try: Code:
|
|
|
|
#8 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
oK thats great. Got the code working.. However, I want it to be just an "image rollover".. not image rollover on text. How do I get rid of the text but still allow the images to rollover? decent web hosting - www.balue.com
. |
|
|
|
#9 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Is this the right way? or a bodge? <div id="menu"> <a href="#"> </a> Then applying text-decoration none in the css ? Surely its a bodge... decent web hosting - www.balue.com
. |
|
|
|
#12 (permalink) | |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Quote:
I don't want any text, I just want mouse roll overs on an image... so its normal state as 1.jpg and then rollover 2.jpg Any idea? decent web hosting - www.balue.com
. |
|
|
|
|
#13 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Bit of a bump. Sorry to be a pain. decent web hosting - www.balue.com
. |
|
|
|
#14 (permalink) | |
|
unusual suspect ™
Join Date: Jul 2004
Location: DE, USA
Posts: 3,067
|
Quote:
But you still want to put text in there then hide it for accessibility/SEO purposes. |
|
|
|
|
#15 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
Oh right. Let me see then if that works then! decent web hosting - www.balue.com
. |
|
|
|
#16 (permalink) |
|
Accurate
Join Date: Feb 2003
Location: UK
Posts: 1,311
|
This works, is my code ok though? Code:
decent web hosting - www.balue.com
. |
|
![]() |