How to place random images at each access?

Asked

Viewed 48 times

-2

In the slide below, it is possible to make every time you enter the site a different slide is displayed and do not follow the sequence?

If this slide were html+css3 it would also be possible without the presence of javascript?

http://flexslider.woothemes.com/index.html

And how can I get this image to be brought from the database? remembering that slide on Html5.

  • please post some of the code you used, if it comes to development "almost" everything is possible, just need to know how you are doing and implement it.

1 answer

1

If this slide were html+css3 it would also be possible without the presence of javascript?

No, you have buttons with stock that css3 does not...

And how can I get that image brought from the database?

Following the example of data connection

<div class="flexslider">
  <ul class="slides">
<?php
foreach ($conn->query($sql) as $row) {
    echo '<li><img src="'.$row['name'].'" /></li>';
}
?>
  </ul>
</div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.