/    Sign up×
Community /Pin to ProfileBookmark

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” />

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@cluefulMar 10.2011 — 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?[/QUOTE]
Of course - just abandon the JavaScript and rewrite your PHP script to build the table.
×

Success!

Help @BaronW spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...