View Single Post
  #2 (permalink)  
Old 01-09-07, 03:39 AM
Wolf1994 Wolf1994 is offline
Wannabe Coder
 
Join Date: Sep 2005
Location: Russia
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
You need server side scripting for your goal.

PHP Code:

$max=10;//quantity of images


$fp=fopen ("img.txt""r");
$n=fread ($fp)+1;
if (
$n>$max)
 
$n=1;
fclose ($fp);

$fp=fopen ("img.txt""w");
fwrite ($fp$n);
fclose ($fp);

print 
'<img src="pic'.$n.'.gif" />'
This script will show images from "pic1.gif" till "pic10.gif", by round.
Reply With Quote