Jump to content
Sign in to follow this  
cyril77

Script album photos

Rate this topic

Recommended Posts

Un javascript des plus simple à réaliser

Share this post


Link to post
Share on other sites

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>

Share this post


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é)

Share this post


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
Sign in to follow this  

×
×
  • Create New...