Je travail actuellement pour refaire le design de mon site web propulsé par wordpress.
Je me suis dit qu'il serait bon de créer une espèce de slideshow, et j'en ai trouvé un vraiment simple avec du code HTML et du code CSS
J'ai 4 images du côté gauche et une image qui se forme sur le côté droit lorsque la souris passe sur une des 4 précédentes images. Voilà le shéma :
- image 1 - image 2 - Grande IMAGE (1, 2, 3 ou 4)
- image 3 - image 4 - GRANDE IMAGE (1, 2, 3 ou 4)
Voilà mon code :
__________________________________________________
__________
<?php
global $post;
$myposts = get_posts('numberposts=4&offset=0');
foreach($myposts as $post) :
setup_postdata($post);
?>
<div id="gallery">
<em id="thumbs">
<a href="<?php the_permalink(); ?>">
<img
src="http://img10.hostingpics.net/pics/2858184game
s.png" title="<?php the_title(); ?>" alt=""></a>
<a href="#nogo">
<img
src="http://img7.hostingpics.net/pics/135883God_of
_War_III.jpg" title="" alt=""></a>
<a href="#nogo">
<img
src="http://img7.hostingpics.net/pics/277868God_of
_War_III_image_2.jpg" title="" alt=""></a>
<a href="#nogo">
<img
src="http://img7.hostingpics.net/pics/241136GodOfW
arIII_PS3_Ed001.jpg" title="" alt=""></a>
</em>
</div>
<?php endforeach; ?>
</div>