You are here: Re: Best way to conditionally show large blocks of HTML « PHP Programming Language « IT news, forums, messages
Re: Best way to conditionally show large blocks of HTML

Posted by Toby Inkster on 01/19/07 03:21

boclair wrote:

> A further method that can be useful is to use conditionals on the css
> display property. e.g
>
> <?php if(conditionA){$display="block;"}
> elseif (conditionB) {$display="none;"}
> ?>
> <div style="<php echo $display;?>">
> BLOCK OF MARKUP
> </div>

Doesn't work in non-CSS aware browsers. e.g. older browsers, text
browsers, search engine spiders, many mobile phones. And you waste
bandwidth.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация