you could do it easily with a txt file and php
one value per line ( if the 79th line gets selected, anything on that line will be echoed )
then use the follow code to select a random line and echo it
<?
$textfile ="random.txt";
$items = file("$textfile");
$item = rand(0, sizeof($items)-1);
echo $items[$item];
?>
so put each url and descriptions on a separate line
so say line 79 was
ModDish - Website Design firm - http://www.moddish.com - blahhhhhhhhhh < description ( like my plug lol)
it would echo it on the doc with the above code.
you could also format each line with <b> </b> ( or any html code) around the title etc , and the html code would work when its echoed.
__________________
Thanks
Evan
From ModDish - Please login or register to view this content. Registration is FREE
Last edited by ModDish; 07-29-2010 at 07:50 PM..
|