Jump to content

Script album photos


Recommended Posts

oui, mais il est pas beau le code, celui la est plus light :

	<ul id="galerie">
<li><img src="image1.jpg" alt="" onmouseover="document.getElementById('imagegd').src='image1-gd.jpg'" /></li>
<li><img src="image2.jpg" alt="" onmouseover="document.getElementById('imagegd').src='image2-gd.jpg'" /></li>
<li><img src="image3.jpg" alt="" onmouseover="document.getElementById('imagegd').src='image3-gd.jpg'" /></li>
</ul>
<p><img src="image1-gd.jpg" alt="" id="imagegd" /></p>

Link to post
Share on other sites

Le code est plus compliqué que le mien, mais plus propre niveau accessibilité (quoique dans le cadre d'une galerie photo, je doute d'une réelle utilité)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...