how to set the source of the image as new.gif.
Answers
Answered by
2
In PC,
right click on picture
click on property.
click on name of the licture and type new.gif.
then. click ok
again click ok
Answered by
1
$(function() {
$("img")
.mouseover(function() {
var src = $(this).attr("src").match(/[^\.]+/) + "over.gif";
$(this).attr("src", src);
})
.mouseout(function() {
var src = $(this).attr("src").replace("over.gif", ".gif");
$(this).attr("src", src);
});
});
For those that use url image sources:
$(function() {
$("img")
.mouseover(function() {
var src = $(this).attr("src");
var regex = /_normal.svg/gi;
src = this.src.replace(regex,'_rollover.svg');
$(this).attr("src", src);
sandhusaab258588:
good morning ji
Similar questions
Computer Science,
6 months ago
Physics,
6 months ago
Biology,
1 year ago
Biology,
1 year ago
Math,
1 year ago