Forum Moderators: coopster
creeking: could you use random php includes?
mike2010: ...but i'd like to display like 3 different banners equally. (impression wise)
$iframe[] = '<iframe ...';
$iframe[] = '<iframe ...';
$iframe[] = '<iframe ...';
[].
Minor update to the linked script:
$iframe[] = '<iframe ...';
$iframe[] = '<iframe ...';
$iframe[] = '<iframe ...';
There is no need to specify the array index 0, 1, 2, etc. when you are simply appending to the array. PHP essentially does that for you, by simply using two empty square brackets... [].
shuffle($iframe);
echo $iframe[0];
hehe I went with his 2nd code near the bottom of that thread. I'll just use the top one.