954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Refreshing just PHP script.

Call me a noob, but is there a way to use just PHP to create a photo slideshow? Or do you need to use flash? I have code that will display images in a random sequence, which is fine.

<?php 
	   $pic = rand(1,15);
	   
	   print "<img src=\"images/$pic.jpg\"  height=\"100\" width=\"140\" />"; 
	?>


But this is in the middle of other elements on a web page. So I need to find a way to make the images change without refreshing the page.

Thanks in advance.

Dante2
Light Poster
44 posts since Sep 2010
Reputation Points: 16
Solved Threads: 0
 

you need javascript. Jquery makes this real easy: http://flowplayer.org/tools/scrollable/index.html

R0bb0b
Posting Shark
998 posts since Jun 2008
Reputation Points: 358
Solved Threads: 89
 

Thanks. I'm gonna have to invest some time in this JQuery.

Dante2
Light Poster
44 posts since Sep 2010
Reputation Points: 16
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: