Intoduction :-
Hii Friends...
Today I explain how to make over-out event with the help of java-script. In asp.net there are many events like mouse-over,mouse-down,key press etc. So I explain this with the code.
Step : 1 The Code goes here :->
<script>
function b(x) {
x.style.height = "250px";
x.style.width = "250px";
}
function n(x) {
x.style.height = "150px";
x.style.width = "150px";
}
</script>
<img onmouseover="b(this)" onmouseout="n(this)" src="img.jpg" width="32" height="32" />
DEMO:-
2) When mouse over
Hii Friends...
Today I explain how to make over-out event with the help of java-script. In asp.net there are many events like mouse-over,mouse-down,key press etc. So I explain this with the code.
Step : 1 The Code goes here :->
<script>
function b(x) {
x.style.height = "250px";
x.style.width = "250px";
}
function n(x) {
x.style.height = "150px";
x.style.width = "150px";
}
</script>
<img onmouseover="b(this)" onmouseout="n(this)" src="img.jpg" width="32" height="32" />
DEMO:-
1) When mouse out
0 comments:
Post a Comment