Picture changes, then mouse is over it.
3 posters
Page 1 of 1
Picture changes, then mouse is over it.
Hello,
In my CSS I have this code
and in widget i have this code
my friend said me, that picture must change in another then mouse is over it (and you don't need to click), but it's doesn't changes for me.
my friend said she don't know any way how to find it why it doesn't changes, because she is not very good in codes too, so i came here.
anybody knows, there is the problem?
http://unicorn.do-forum.com/
P.S. My english is terrible, sorry...
In my CSS I have this code
- Code:
#snapas,
#snapas span{
display:block;
width:100px;
height:100px;
position:relative;
overflow: hidden;
}
#snapas span{
height:100px;
background: url(http://i51.tinypic.com/357oitj.png) 0 0 no-repeat;
text-indent:-9000px;
}
#snapas:hover span{
))))))))
background-image: url("http://i52.tinypic.com/ake3c3.jpg");
))))))))
}
#snapas:active span,
#snapas:focus span{
top:-40px;
}
and in widget i have this code
- Code:
<a href="..." id="snapas">
<span></span>
</a>
my friend said me, that picture must change in another then mouse is over it (and you don't need to click), but it's doesn't changes for me.
my friend said she don't know any way how to find it why it doesn't changes, because she is not very good in codes too, so i came here.
anybody knows, there is the problem?
http://unicorn.do-forum.com/
P.S. My english is terrible, sorry...
zaichik.- Forumember
- Posts : 28
Reputation : 0
Language : Lithuanian
zaichik.- Forumember
- Posts : 28
Reputation : 0
Language : Lithuanian
Re: Picture changes, then mouse is over it.
ok.
change xxx to class name
- Code:
.xxxx {
background-image: url('http://i51.tinypic.com/357oitj.png');
}
.xxxx:hover {
background-image: url('http://i52.tinypic.com/ake3c3.jpg');
}
change xxx to class name
Re: Picture changes, then mouse is over it.
doesn't work.
zaichik.- Forumember
- Posts : 28
Reputation : 0
Language : Lithuanian
Re: Picture changes, then mouse is over it.
This
- Code:
<img src="http://i51.tinypic.com/357oitj.png"
onmouseover="this.src='http://i52.tinypic.com/ake3c3.jpg'"
onmouseout="this.src='http://i51.tinypic.com/357oitj.png'">
Re: Picture changes, then mouse is over it.
omg, thank you!!! and maybe you know is it possible, to write a text on that secind picture? cause this will be house points, but if i want to change points number, i need to do it with photoshop. so maybe it's possible to write text on that second image?
EDIT: Shadow, i think i do the same code, but why it doesn't work for my another pictures?
EDIT: Shadow, i think i do the same code, but why it doesn't work for my another pictures?
- Code:
<img src="http://i51.tinypic.com/357oitj.png"
onmouseover="this.src='http://i52.tinypic.com/ake3c3.jpg'"
onmouseout="this.src='http://i51.tinypic.com/357oitj.png'">
<img src="http://i53.tinypic.com/214drub.png"
onmouseover="http://i54.tinypic.com/317e9o4.png'"
onmouseout="this.src='http://i53.tinypic.com/214drub.png'">
<img src="http://i54.tinypic.com/fp2mqa.png"
onmouseover="http://i53.tinypic.com/k1b90j.png'"
onmouseout="this.src='http://i54.tinypic.com/fp2mqa.png'">
<img src="http://i52.tinypic.com/fn48ew.png"
onmouseover="http://i52.tinypic.com/14277us.png'"
onmouseout="this.src='http://i52.tinypic.com/fn48ew.png'">
zaichik.- Forumember
- Posts : 28
Reputation : 0
Language : Lithuanian
Re: Picture changes, then mouse is over it.
oh, okey.
but what about that codes (i edited my another message)? : ((
but what about that codes (i edited my another message)? : ((
Last edited by zaichik. on Fri Sep 23, 2011 10:20 am; edited 2 times in total
zaichik.- Forumember
- Posts : 28
Reputation : 0
Language : Lithuanian
Re: Picture changes, then mouse is over it.
- Code:
<img src="http://i51.tinypic.com/357oitj.png"
onmouseover="this.src='http://i52.tinypic.com/ake3c3.jpg'"
onmouseout="this.src='http://i51.tinypic.com/357oitj.png'">
<img src="http://i53.tinypic.com/214drub.png"
onmouseover="this.src='http://i54.tinypic.com/317e9o4.png'"
onmouseout="this.src='http://i53.tinypic.com/214drub.png'">
<img src="http://i54.tinypic.com/fp2mqa.png"
onmouseover="this.src='http://i53.tinypic.com/k1b90j.png'"
onmouseout="this.src='http://i54.tinypic.com/fp2mqa.png'">
<img src="http://i52.tinypic.com/fn48ew.png"
onmouseover="this.src='http://i52.tinypic.com/14277us.png'"
onmouseout="this.src='http://i52.tinypic.com/fn48ew.png'">
they all are same, but i still don't find a problem. (
EDIT:
I clicked on them few times and now it's good.
Thank you very very much! : ))
Last edited by zaichik. on Fri Sep 23, 2011 10:24 am; edited 1 time in total
zaichik.- Forumember
- Posts : 28
Reputation : 0
Language : Lithuanian
Re: Picture changes, then mouse is over it.
No problem
Last edited by shadowz au on Fri Sep 23, 2011 10:25 am; edited 1 time in total
Re: Picture changes, then mouse is over it.
i just clicked on them few times, and now it's good.
thank you very much! : ))))
thank you very much! : ))))
zaichik.- Forumember
- Posts : 28
Reputation : 0
Language : Lithuanian
Re: Picture changes, then mouse is over it.
Solved > Locked
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Similar topics
» [Need Code]Automatic image resize/zoom if Mouse over
» this recent topics template dose not stop on mouse hover
» Topics & Category Highlight Mouse Ovr
» How to make a mouse over effect on New Topic Button
» Pixelart Display - Image zoom with mouse
» this recent topics template dose not stop on mouse hover
» Topics & Category Highlight Mouse Ovr
» How to make a mouse over effect on New Topic Button
» Pixelart Display - Image zoom with mouse
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum