javascript - Replacing an image with another image on click -


i have 6 images sorted on 3x2 grid on page. html looks this.

<div id="wrapper"> <div id="list">     <ul>     <li> <img src="images/2.png" /> </> <p>tekst</p>  </li>     <li><img src="images/3.png" /><p>tekst</p></li>     <li><img src="images4.png" /><p>tekst</p></li>    </ul> </div> <div id="list2">    <ul>      <li><img src="images/5.png" /><p>tekst</p></li>     <li><img src="images/6.png" /><p>tekst</p></li>     <li><img src="images/7.png" /><p>tekst</p></li>    </ul>  </div> 

with css positioned them correctly on page. like, darker version, aka image, of image, when click it. if click again moves tot initial one.

this has happen every 6 images. don't have lot of experience script tags , goes between them hoping guys help!

thanks loads.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -