2
Contributors
13
Replies
55
Views
2 Years
Discussion Span
Last Post by phoenix254
Featured Replies
  • 1
    diafol 3,720   2 Years Ago

    So what's stopping you? What do you need from us? Not to build it for you I hope. Read More

  • 1
    diafol 3,720   2 Years Ago

    Well, come back when you do. Or ask for advice on the js forum. You've posted to the PHP forum, which isn't really the place to ask about js implementation. Read More

1

So what's stopping you? What do you need from us? Not to build it for you I hope.

0

no i have made it but i dont know to use javescript with php.
This is what i made

and here is my php script

            <?php
            $i=1;
            $images = glob($des."*");
            $coutimage=count($images);
            //for($i=0;$i=$coutimage;$i++)
                //sleep(1);

                $curruntimage=$images[$i];
              echo '<img id="inslider" src="'.$curruntimage.'">';

            ?>
            </div></center>

            <div id ="userimageslist">
                <div id="moveleft"></div>
                <div id="moveright"></div>
            <?php
            $images = glob($des."*");
            foreach($images as $image){

                $image_ext = pathinfo($image,PATHINFO_EXTENSION);
                if($image_ext == "jpg" || $image_ext == "png" || $image_ext == "jpeg" || $image_ext== "gif" ){
            //<a href="'.$image.'" target="_blank">
                echo '<img id="imagelist" src="'.$image.'" height="100" width="100">';
                }
            }
            ?>

Edited by phoenix254

0

Dont you think it would have been better to supply this info in the OP?

Anyhow, what js have you used?
Where did it fail, (if you know)?
Are you using a library like jQuery or similar?
PHP is the easy bit (dragging info from a source).
JS may take more time to develop.
Show an example of the output in the client (browser) - so look under View Source and copy/paste the relevant output here - just the relevant bits!
That's what js is going to have to deal with.

0

Can you do what I asked? I have asked for further info.

0

i didnt use js.
i use only css php html for create this slider.
and i dont have any idea how i show all users images that he has uploaded like this image slider .

Edited by phoenix254

0

WIll you be using jQuery or a similar library?

1

Well, come back when you do. Or ask for advice on the js forum. You've posted to the PHP forum, which isn't really the place to ask about js implementation.

0

but images i will get with php or is possibile with js form server ?

0

You get images with PHP usually, although you can use js (using ajax) to get images via PHP.
The interactivity you are looking for, i.e. the scrolling, switching images etc will be down to js. I think I've mentioned this a few times now, including via PM. What part of that do you not understand?

0

I see that you've opened another thread on this very same issue. Still going on about a "php" slideshow. Look, I don't know how many different ways there exist to say this. Your issue is JAVA-BLOODY-SCRIPT.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.