View Single Post
11-20-2006, 09:42 PM
#9
.amaZe is offline .amaZe
Status: Nixism
Join date: Aug 2006
Location: Nix Yorkism
Expertise:
Software:
 
Posts: 2,147
iTrader: 19 / 100%
 

.amaZe is an unknown quantity at this point

  Old

Originally Posted by Jeff Andersen
PHP Code:
<?
$number 
rand(1,3);
$ad[1] = "image/name.gif";
$ad[2] = "image/name.gif";
$ad[3] = "image/name.gif";
include(
$ad[$number]);
?>
Was used to add random ads to one of my sites, you can add as many as you like, just change the number and specify the filename.

And yes, I know an array or folder setup would be more proper but I will NOT conform!

ok, I WAS thinking something numbered were the user can select what part of the show to go to, and at the same time make it scroll on its own without selection