Chage Theme image on mouse over
-
I want to change the header image onmouseover –
Is some javascript method possiblePresently have used this method to make it a link
———-header.php————-
<div id=”header”>
<div class=”headerimg_1″ onclick=”location.href=’https://abc’;” style=”cursor: pointer; “>
</div>
<div class=”headerimg_2″ onclick=”location.href=’https://xyz’;” style=”cursor: pointer; “>
</div>
</div>
——following in css———-
.headerimg_1{
height: 300px;
width: 314px;
background: url(images/1.gif);
}#headerimg_2 {
height: 300px;
width: 222px;
background: url(images/2.gif);
}
—————<<>>———–
Also an unrelated doubt-
if I do not give header image in css and inside the tag give <img…> – It won’t work. Why is it so?TIA
- The topic ‘Chage Theme image on mouse over’ is closed to new replies.