First, open up Notepad or any other text editor
Type in
Code:
<?php
$img = array();
echo $img[$count];
?>
Next is the fun part. Place the following code in between the above code
Code:
$img[] = '<img src="" />';
$img[] = '<img src="" />';
$img[] = '<img src="" />';
You add the image links in the "" so a example would be <img src="http://image.com/image.png"
Now the final part of code. Put it after what you just did
Code:
$max = count($img) - 1;
$count = rand(0,$max);
So now the full code would be like this
Code:
<?php
$img = array();
$img[] = '<img src="" />';
$img[] = '<img src="" />';
$img[] = '<img src="" />';
$max = count($img) - 1;
$count = rand(0,$max);
echo $img[$count];
?>
Now Enjoy your image rotator
**Note**Save as .php
You can see a example one
Here