Sweet_Nightmare at 17h14
04
Jan
2012
Hey, everyone!
I need help with creating a mouse over effect on the New Topic and Post Replay buttons.
I tried this site http://www.w3schools.com/css/css_image_sprites.asp but I couldn't write the code to show the buttons in my forum after I put it in my CSS.
I need help with creating a mouse over effect on the New Topic and Post Replay buttons.
I tried this site http://www.w3schools.com/css/css_image_sprites.asp but I couldn't write the code to show the buttons in my forum after I put it in my CSS.
1 Coddy, on 04/01/2012 at 17h17
Hi! Can you provide your forum url? 
2 Sweet_Nightmare, on 04/01/2012 at 17h19
3 Coddy, on 04/01/2012 at 17h27
For New topic:
For post reply:
For New topic, for locked forum:
- Code:
#i_post:hover, #one:hover{
css proprietes;
}
For post reply:
- Code:
#i_reply:hover{
css proprietes;
}
For New topic, for locked forum:
- Code:
#i_reply_locked:hover{
css proprietes;
}
4 Sweet_Nightmare, on 04/01/2012 at 17h32
Thanks, I'll try it
5 Coddy, on 04/01/2012 at 17h33
Welcome! 
6 Sweet_Nightmare, on 04/01/2012 at 17h37
I coulnd't make it work. It is possible for me to use two different images without hover them?
7 Coddy, on 04/01/2012 at 18h26
Just remove :hover before the id's... 
8 Sweet_Nightmare, on 04/01/2012 at 18h54
Oh, yeah. Thank you very much
9 Sweet_Nightmare, on 04/01/2012 at 19h04
I still can't get it to work. I'll post the code which I'm trying with.
There are no links in it now.
There are no links in it now.
- Code:
#i_post:hover, #one:hover{
{
width: 167px;
height: 76px;
color: #000000;
padding: 10px;
text-decoration:none;
display: block;
font-weight: bold;
background-image : url(link);
background-repeat: no-repeat;
}
a.y:hover {
width: 167px;
height: 76px;
color: #FFFFFF;
padding: 10px;
font-weight: bold;
text-decoration:none;
display: block;
background-image : url(link);
background-repeat: no-repeat;
}
10 Coddy, on 04/01/2012 at 19h51
- Code:
#i_post:hover, #one:hover{
width: 167px;
height: 76px;
color: #000000;
padding: 10px;
text-decoration:none;
display: block;
font-weight: bold;
background-image : url(link);
background-repeat: no-repeat;
}
a.y:hover {
width: 167px;
height: 76px;
color: #FFFFFF;
padding: 10px;
font-weight: bold;
text-decoration:none;
display: block;
background-image : url(link);
background-repeat: no-repeat;
}
You have an mistake, also replace background-image : url(link) by a link to a image.
11 Sweet_Nightmare, on 04/01/2012 at 20h12
Yes, I'll put the image links. I just removed them before I posted the code here.
Thank you.
Thank you.
12 Coddy, on 05/01/2012 at 08h30
Glad I could help. 
13 Sanket, on 05/01/2012 at 08h57
SolveD?
14 Sweet_Nightmare, on 05/01/2012 at 17h19
No. Not yet.
So I put the last code and it still doesn't work.
And I put in the CSS section. What it is that I get wrong? The button just don't want to show up.
So I put the last code and it still doesn't work.
- Code:
#i_post:hover, #one:hover{
2. width: 129px;
3. height: 51px;
4. color: #000000;
5. padding: 10px;
6. text-decoration:none;
7. display: block;
8. font-weight: bold;
9. background-image : url(http://prikachi.com/images/385/4228385N.png);
10. background-repeat: no-repeat;
11. }
12.
13. a.y:hover {
14. width: 129px;
15. height: 58px;
16. color: #FFFFFF;
17. padding: 10px;
18. font-weight: bold;
19. text-decoration:none;
20. display: block;
21. background-image : url(http://prikachi.com/images/385/4228385N.png);
22. background-repeat: no-repeat;
}
And I put in the CSS section. What it is that I get wrong? The button just don't want to show up.
15 iamthestreets, on 05/01/2012 at 20h21
Try this. Your codes should be separated you need the original code for the image and a hover code. First code should have the regular image and the hover code should have the hover image in the url(). This is how I did mine. not sure what the a.y:hover is for so I left it alone?
- Code:
#i_post, #one{
width: 129px;
height: 51px;
color: #000000;
padding: 10px;
text-decoration:none;
display: block;
font-weight: bold;
background-image : url(image);
background-repeat: no-repeat;
}
#i_post:hover, #one:hover{
width: 129px;
height: 51px;
color: #000000;
padding: 10px;
text-decoration:none;
display: block;
font-weight: bold;
background-image : url(hover image);
background-repeat: no-repeat;
}
a.y:hover {
width: 129px;
height: 58px;
color: #FFFFFF;
padding: 10px;
font-weight: bold;
text-decoration:none;
display: block;
background-image : url(hover image);
background-repeat: no-repeat;
}
16 Sweet_Nightmare, on 05/01/2012 at 21h54
I finally did it, thank you very much.
It's solved!
It's solved!
17 Nera., on 05/01/2012 at 22h38
| Topic Solved & Locked |
Similar topics
I would like to have both buttons highlight when you put your mouse over the button. I have been trying to figure this out on my own and so far no luck.
These are the buttons
Can someone please show me where and what code I need to
Vote for adding mouse over effect for fast previewing topics content , like this one here!
can anybody teach me how to add down down menu like here
-->http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
i like it because it really rocks!
Replies 1 to 17 on 17 for "How to make a mouse over effect on New Topic Button"
Search
Informations
17 Replies For the topic :
"How to make a mouse over effect on New Topic Button"
This topic has been viewed 10136 times.
Last message :
04/01/2012 at 17h14 by "Sweet_Nightmare"





