Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: Multiple Advertisements - Selected at random ?

Quote Reply
Re: Multiple Advertisements - Selected at random ? In reply to
Hi,

You can use globals inside of your footers, so you could add a global:

random_add =>
sub {
my $tags = shift;
my @ads = ('Ad1', 'Ad2', 'Ad3');
return $ads[rand @ads];
}

and then put <%random_add%> as the contents of the footer. That will be compltelty random, you would need to tweak the above code if you want to do anything more sophisticated.

Cheers,

Alex

--
Gossamer Threads Inc.
Subject Author Views Date
Thread Multiple Advertisements - Selected at random ? Ground Zero 3694 Sep 2, 2001, 3:13 AM
Thread Re: Multiple Advertisements - Selected at random ?
Alex 3599 Sep 4, 2001, 9:31 AM
Post Re: Multiple Advertisements - Selected at random ?
Ground Zero 3584 Sep 7, 2001, 12:45 AM
Post Re: [Alex] Multiple Advertisements - Selected at random ?
anup123 3405 Mar 13, 2003, 5:30 AM