Results 1 to 2 of 2
  1. #1
    BaronW is offline Member
    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Default Image array into table

    Hello, hope you can help me with this!

    I currently have a php script that spits all the images in a given folder into this script, which then displays the images in sequence in a slideshow.

    What i need the script to do instead of making is slideshow of one image at a time, is to display ALL the images together in a table.

    Is that even possible?

    Thanks in advance for your insight! Here's the script...


    <script src="images/headshots/getimages.php"></script>

    <script type="text/javascript">

    var curimg=0
    function rotateimages(){
    document.getElementById("slideshow").setAttribute( "src", "images/headshots/"+galleryarray[curimg])
    curimg=(curimg<galleryarray.length-1)? curimg+1 : 0
    }

    window.onload=function(){
    setInterval("rotateimages()", 2500)
    }
    </script>

    <div style="width: 170px; height: 400px">
    <img id="slideshow" src="images/headshots/1.jpg" />

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    JavaScript is not Java. Find a JavaScript forum for your question (no, there isn't one here)

    db

Similar Threads

  1. array table and paint?
    By reik6149 in forum New To Java
    Replies: 1
    Last Post: 09-16-2010, 01:55 PM
  2. Replies: 0
    Last Post: 09-10-2010, 12:48 PM
  3. Is resultset the mirror image of database table???
    By Stephen Douglas in forum New To Java
    Replies: 2
    Last Post: 04-10-2010, 03:01 PM
  4. Array for time table
    By blessed07 in forum New To Java
    Replies: 0
    Last Post: 03-06-2010, 03:47 PM
  5. NFL 2D array standings table
    By ber1023 in forum New To Java
    Replies: 5
    Last Post: 01-07-2010, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •