I'm pretty new to Etomite - so, noob status to me, please!
I modified the RandomAd snippet to work for quotes - didn't find the RandomQuote snippet, so this is what I'm using
// Load Ads to display
$randomad= array();
$adfile = $file.".txt";
// Read one line per ad
$fh = fopen($adfile, "r");
while(!feof($fh)) {
$line = fgets($fh, 10240);
$line = trim($line);
if($line != "") {
$randomad[] = $line;
}
}
// Pick a random Ad to display
$num = count($randomad);
$idx = rand(0, $num-1);
$output= $randomad[$idx];
return $output."";
I'm trying to put it in a box or something, but no matter where I put class="logobox" or whatever class I try to use, nothing happens.
Site is here: My Etomite Webpage
Please tell me I'm missing something really, really basic!
Thanks,
Linda











