Page 1 of 1

is this a good idea?

Posted: Mon Jun 24, 2002 8:54 pm
by Patriot
is it a good idea to put a lot of "if" functions on your sidebars,
like:

<a href="newsup.php">
<font face="Tahoma" color="black" size="1">
<?php
if ( is_dir("newsup"))
print "NewsUpdate";
?>
</a>
</font>
or will it take to long to load?
is there a much much much better way?

Posted: Tue Jun 25, 2002 1:54 am
by twigletmac
Well without knowing exactly what you are trying to achieve it is difficult to say if there is a better way...

But if you're that worried about speed, having a CSS file with font definitions in there will make the page load faster than having lines and lines of font tags.

Mac