Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

php image slider

New Here ,
Jan 10, 2014 Jan 10, 2014

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 } ?>

TOPICS
Server side applications
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 17, 2014 Jan 17, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines