<!DOCTYPE html>
<html>
<title>sargonco</title>
<script src="http://www.sargonco.com/Uploads/Public/article/webdistut/javascript/w3.js""></script>
<body>

<p>Images with a class named "nature" will behave like a slideshow:</p>

<img class="nature" src="img_fjords.jpg" width="100%">
<img class="nature" src="img_mountains.jpg" width="100%">
<img class="nature" src="img_nature.jpg" width="100%">

<script>
w3.slideshow(".nature");
</script>

</body>
</html>

Images with a class named "nature" will behave like a slideshow: