2
To explain better, I would like to change a second image as I move the mouse over the first.
Example:
Situation where no mouse passes over the first image.
When I hover over the first image, the second changes
With this, when I hover over a word every second image is changed.
I used this code to 1 whole image change itself, only that the representation of colors got weird, appeared more of one than other as you can see below;
<html><article><img src= "https://i.imgur.com/T7CkXGw.png"
onMouseOver= this.src="https://i.imgur.com/9EDK5EA.png"
onMouseOut= this.src="https://i.imgur.com/T7CkXGw.png"
onClick=location="https://centrorpg.com/index.php?topic=22835.msg161154;topicseen#post_elmos"><div>
<img src= "https://i.imgur.com/8LoUSqQ.png"
onMouseOver= this.src="https://i.imgur.com/nDLa00P.png"
onMouseOut= this.src="https://i.imgur.com/8LoUSqQ.png"
onClick=location="https://centrorpg.com/index.php?topic=22835.msg161154;topicseen#post_armaduras"><div>
<img src= "https://i.imgur.com/xTL0Htn.png"
onMouseOver= this.src="https://i.imgur.com/KcwPPnx.png"
onMouseOut= this.src="https://i.imgur.com/xTL0Htn.png"
onClick=location="https://centrorpg.com/index.php?topic=22835.msg161154;topicseen#post_espadas"><div><img src= "https://i.imgur.com/oYn97Sr.png"onMouseOver= this.src="https://i.imgur.com/G9PS5nU.png"
onMouseOut= this.src="https://i.imgur.com/oYn97Sr.png"
onClick=location="https://centrorpg.com/index.php?topic=22835.msg161154;topicseen#post_escudos"><div><img src= "https://i.imgur.com/nJFZqBs.png"
onMouseOver= this.src="https://i.imgur.com/fULOFTE.png"
onMouseOut= this.src="https://i.imgur.com/nJFZqBs.png"
onClick=location="https://centrorpg.com/index.php?topic=22835.msg161154;topicseen#post_acessorios"><div></article></html>
Edition: 03/09/2019 14:23
To explain better what I need:
https://i.imgur.com/1Os6QEj.png
New code, solved.
<html>
<head>
<style>
.container {
margin: auto;
height: 184px;
width: 288px;
position: relative;
}
.container img {
display: block;
}
.container img:nth-child(n+6) {
position: absolute;
right: 0;
top: 0;
}
.overx {
z-index: 2;
}
.elmo:hover ~ .elmox {
z-index: 2;
}
.colete:hover ~ .coletex {
z-index: 2;
}
.espada:hover ~ .espadax {
z-index: 2;
}
.escudo:hover ~ .escudox {
z-index: 2;
}
.acessorio:hover ~ .acessoriox {
z-index: 2;
}</style></head>
<div class="container">
<img class="elmo" src="https://i.imgur.com/mBmYJzd.png" onClick=location="https://centrorpg.com/index.php?topic=22835.msg161158;topicseen#post_elmos">
<img class="colete" src="https://i.imgur.com/cbTwy0A.png" onClick=location="https://centrorpg.com/index.php?topic=22835.msg161158;topicseen#post_armaduras">
<img class="espada" src="https://i.imgur.com/uhn3zj2.png" onClick=location="https://centrorpg.com/index.php?topic=22835.msg161158;topicseen#post_espadas">
<img class="escudo" src="https://i.imgur.com/KlDt4yo.png" onClick=location="https://centrorpg.com/index.php?topic=22835.msg161158;topicseen#post_escudos">
<img class="acessorio" src="https://i.imgur.com/UfpdOnV.png" onClick=location="https://centrorpg.com/index.php?topic=22835.msg161158;topicseen#post_acessorios">
<img class="overx" src="https://i.imgur.com/LMejPvW.png">
<img class="elmox" src="https://i.imgur.com/LnIcqKD.png">
<img class="coletex" src="https://i.imgur.com/n3OWgbY.png">
<img class="espadax" src="https://i.imgur.com/BmvosVk.png">
<img class="escudox" src="https://i.imgur.com/87CjNwg.png">
<img class="acessoriox" src="https://i.imgur.com/fngGeHd.png">
</div></html>
How so, appeared more of one than of another? I did not understand very well
– JassRiver
Dude but your code already seems to work... what you want is to take this blank space between one image and another?
– hugocsl