Skip to main content
shoney33
Participating Frequently
January 10, 2014
Question

php image slider

  • January 10, 2014
  • 1 reply
  • 1351 views

this is what i tried to do ... but obvious its not at all working...i do know that i have to use jquery and the code given below will not work at all, i want to

display image(1.jpg),2.jpg,3,jpg)  one by one after few seconds in fade effect..

and also there is this website http://wowslider.com/

can any one tell me the code of the slider they made for this website and explain step by step.. since i m a slow learner

<div id="imageslide">

<?php

     $image=array("1.jpg","2.jpg","3.jpg");

     $x=count($image);

for($i=0;$i<$x;$i++){

?>

<img src="image/<?php echo $image[$i]?>" />

<?php } ?>

This topic has been closed for replies.

1 reply

BazBat
Participating Frequently
January 17, 2014

If you wanted to write your own/know how they work this will get you started:

http://css-plus.com/2013/10/create-your-own-jquery-image-slider/

There are loads of free ones available however so I wouldn't recommend using your own on a real site.

You wouldn't do it with PHP, you need to use Javascript/Jquery/CSS to manipulate the slides. PHP would only be used to grab the images from a Directory/Database.